diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-15 23:32:22 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-15 23:32:22 +0100 |
commit | 3fe10cf4bfc63865b9b424549d1a8d0688b0fa68 (patch) | |
tree | 1a57fea4f672b20476cb22d26d26b632a25ea00d /GNUmakefile | |
parent | 97c018cbc0b8ae7d1bab95b59449dac34d22d5fd (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.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 2 |
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: |