summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-15 23:32:22 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-15 23:32:22 +0100
commit3fe10cf4bfc63865b9b424549d1a8d0688b0fa68 (patch)
tree1a57fea4f672b20476cb22d26d26b632a25ea00d
parent97c018cbc0b8ae7d1bab95b59449dac34d22d5fd (diff)
Don’t use ‘dir’ as a variable name
The variable name ‘dir’ conflicts with the ‘$(dir)’ function, and causes issues with Tree-Sitter syntax highlighting.
-rw-r--r--GNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 37b617c..300f185 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -35,7 +35,7 @@ gendeps = $(incs) $(wildcard $(dir $(patsubst out/%.html,src/%.gsp,$1))*.gsp)
.SECONDEXPANSION:
out/%.html: src/%.gsp $$(call gendeps,$$@)
@PATH="$$PATH:./include" \
- m4 -P $(foreach dir,$(^D),-I$(dir)) include/lib.m4 $< | gsp >$@
+ m4 -P $(foreach d,$(^D),-I$d) include/lib.m4 $< | gsp >$@
@printf 'GSP\t%s\n' "$@"
check: