From 3fe10cf4bfc63865b9b424549d1a8d0688b0fa68 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 15 Nov 2023 23:32:22 +0100 Subject: Don’t use ‘dir’ as a variable name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The variable name ‘dir’ conflicts with the ‘$(dir)’ function, and causes issues with Tree-Sitter syntax highlighting. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3