summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-15 23:40:36 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-15 23:40:36 +0100
commit7bd10f34ca999d52436a85f7a1bfea27e069f485 (patch)
treed199fb668ad2066b080395b3b4463755e80edb35
parent3fe10cf4bfc63865b9b424549d1a8d0688b0fa68 (diff)
Make use of ‘export’ in GNU make
-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