summaryrefslogtreecommitdiffhomepage
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 300f185..93dfa0f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,6 +1,8 @@
.PHONY: check clean serve watch
MAKEFLAGS := -j$(shell nproc)
+export PATH := $(PATH):./include
+export LANG := en_US.UTF-8
# Source- and destination files
srcs := $(shell find src -type f -not -name '*.gsp' -or -name 'index.gsp')
@@ -34,13 +36,12 @@ gendeps = $(incs) $(wildcard $(dir $(patsubst out/%.html,src/%.gsp,$1))*.gsp)
.SECONDEXPANSION:
out/%.html: src/%.gsp $$(call gendeps,$$@)
- @PATH="$$PATH:./include" \
- m4 -P $(foreach d,$(^D),-I$d) include/lib.m4 $< | gsp >$@
+ @m4 -P $(foreach d,$(^D),-I$d) include/lib.m4 $< | gsp >$@
@printf 'GSP\t%s\n' "$@"
check:
- LANG=en_US.UTF-8 find src -name 'index.gsp' -exec \
- aspell --home-dir=./ --ignore-case check {} \;
+ find src -name 'index.gsp' -exec \
+ aspell --home-dir=./ --ignore-case check {} \;
clean:
rm -rf out