~sircmpwn/hare

1ac8e33e5a1d133f66d7aefab106a1f848f79eab — Haelwenn (lanodan) Monnier 2 years ago 65775f4
cmd/haredoc: Fix default HAREPATH

Closes: https://todo.sr.ht/~sircmpwn/hare/575
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2 files changed, 4 insertions(+), 3 deletions(-)

M Makefile
M cmd/haredoc/env.ha
M Makefile => Makefile +3 -1
@@ 78,7 78,9 @@ $(TESTCACHE)/hare.ssa: $(hare_srcs) $(testlib_deps_any) $(testlib_deps_$(PLATFOR
.bin/haredoc: .bin/hare $(haredoc_srcs)
	@mkdir -p .bin
	@printf 'HARE\t$@\n'
	@env HAREPATH=. ./.bin/hare build -o .bin/haredoc ./cmd/haredoc
	@env HAREPATH=. ./.bin/hare build \
		-D HAREPATH:str='"'"$(HAREPATH)"'"' \
		-o .bin/haredoc ./cmd/haredoc

docs/hare.1: docs/hare.scd
docs/haredoc.1: docs/haredoc.scd

M cmd/haredoc/env.ha => cmd/haredoc/env.ha +1 -2
@@ 16,6 16,5 @@ fn default_tags() []module::tag = {
};

fn default_harepath() str = {
	// TODO: Same deal
	return "/usr/share/src/hare/stdlib:/usr/share/src/hare/third-party";
	return HAREPATH;
};