git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 14/23] Makefile: re-add and use the "shellquote" macros

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 16, 2021, 12:00 UTC
Message-ID
<patch-v3-14.23-e811a907b08-20211116T114334Z-avarab@gmail.com>
In-Reply-To
<cover-v3-00.23-00000000000-20211116T114334Z-avarab@gmail.com>

Re-add and use, and expand on "shellquote" macros added in 4769948afe7 (Deal with $(bindir) and friends with whitespaces., 2005-10-10).

We avoided using them due to the "$(call)" feature of GNU make being relatively new at the time, but it isn't anymore. We hard depend on GNU make versions that have it.

The use of "$(call)" was removed in 39c015c556f (Fixes for ancient versions of GNU make, 2006-02-18) and 7ffe7098dca (Fix installation of templates on ancient systems., 2006-07-29) due to those incompatibilities with older GNU make versions, and we've used the more verbose *_SQ pattern ever since.

The "$(call)" feature was introduced in GNU make version 3.78, released on the 22nd of September, 1999. That release also introduced "$(error)" and "$(warning)", which we've been making use of since f2fabbf76e4 (Teach Makefile to check header dependencies, 2010-01-26).

This extends upon the macros added in 4769948afe7: We now have macros for quoting a ' inside '', and a ' with no surrounding '' as before.

Additionally provide and use a "shelldquote" macro along with "shellquote" for the common case of wanting to quote a C string we pass to the compiler with a -D flag.

This doesn't get rid of all of our shell quoting. We've still got some in the main Makefile, let's leave most of it to avoid in-flight conflicts. I've fully converted "templates/Makefile" and "t/Makefile" though.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 Makefile           | 15 +++++----------
 shared.mak         | 14 ++++++++++++++
 t/Makefile         | 34 +++++++++++++++-------------------
 templates/Makefile | 14 +++++---------
 4 files changed, 39 insertions(+), 38 deletions(-)
diff --git a/Makefile b/Makefile
index 7130e32a251..b458c24d95e 100644
--- a/Makefile
+++ b/Makefile
@@ -1996,11 +1996,7 @@ ifneq ("$(PROFILE)","")
 endif
 endif
 
-# Shell quote (do not use $(call) to accommodate ancient setups);
-
-ETC_GITCONFIG_SQ = $(subst ','\'',$(ETC_GITCONFIG))
-ETC_GITATTRIBUTES_SQ = $(subst ','\'',$(ETC_GITATTRIBUTES))
-
+# Shell quote, should be changed to use $(call shellquote,...)
 DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
 NO_GETTEXT_SQ = $(subst ','\'',$(NO_GETTEXT))
 bindir_SQ = $(subst ','\'',$(bindir))
@@ -2535,11 +2531,11 @@ builtin/init-db.sp builtin/init-db.s builtin/init-db.o: EXTRA_CPPFLAGS = \
 
 config.sp config.s config.o: GIT-PREFIX
 config.sp config.s config.o: EXTRA_CPPFLAGS = \
-	-DETC_GITCONFIG='"$(ETC_GITCONFIG_SQ)"'
+	-DETC_GITCONFIG=$(call shelldquote,$(ETC_GITCONFIG))
 
 attr.sp attr.s attr.o: GIT-PREFIX
 attr.sp attr.s attr.o: EXTRA_CPPFLAGS = \
-	-DETC_GITATTRIBUTES='"$(ETC_GITATTRIBUTES_SQ)"'
+	-DETC_GITATTRIBUTES=$(call shelldquote,$(ETC_GITATTRIBUTES))
 
 gettext.sp gettext.s gettext.o: GIT-PREFIX
 gettext.sp gettext.s gettext.o: EXTRA_CPPFLAGS = \
@@ -2700,14 +2696,13 @@ perl/build/lib/%.pm: perl/%.pm GIT-PERL-DEFINES
 	$(QUIET_GEN)mkdir -p $(dir $@) && \
 	sed -e 's|@@LOCALEDIR@@|$(perl_localedir_SQ)|g' \
 	    -e 's|@@NO_GETTEXT@@|$(NO_GETTEXT_SQ)|g' \
-	    -e 's|@@NO_PERL_CPAN_FALLBACKS@@|$(NO_PERL_CPAN_FALLBACKS_SQ)|g' \
+	    -e 's|@@NO_PERL_CPAN_FALLBACKS@@|$(call shq,$(NO_PERL_CPAN_FALLBACKS))|g' \
 	< $< > $@
 
 all:: $(LIB_PERL_GEN)
 ifndef NO_PERL_CPAN_FALLBACKS
 all:: $(LIB_CPAN_GEN)
 endif
-NO_PERL_CPAN_FALLBACKS_SQ = $(subst ','\'',$(NO_PERL_CPAN_FALLBACKS))
 endif
 
 # install-man depends on Git.3pm even with NO_PERL=Y
@@ -3021,7 +3016,7 @@ else
 	$(INSTALL) $(vcpkg_dbg_bin)/*.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
 endif
 endif
-	$(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
+	$(MAKE) -C templates DESTDIR=$(call shellquote,$(DESTDIR)) install
 	$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
 	$(INSTALL) -m 644 mergetools/* '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
 ifndef NO_GETTEXT
diff --git a/shared.mak b/shared.mak
index 2d597ef7603..ef03c2bc094 100644
--- a/shared.mak
+++ b/shared.mak
@@ -8,6 +8,20 @@
 #    info make --index-search=.DELETE_ON_ERROR
 .DELETE_ON_ERROR:
 
+### Quoting helpers
+
+## Quote a ' inside a '': FOO='$(call shq,$(BAR))'
+shq = $(subst ','\'',$(1))
+
+## Quote a ' and provide a '': FOO=$(call shq,$(BAR))
+shellquote = '$(call shq,$(1))'
+
+## Quote a " inside a ""
+shdq = $(subst ",\",$(1))
+
+## Quote ' for the shell, and embedded " for C: -DFOO=$(call shelldquote,$(BAR))
+shelldquote = '"$(call shdq,$(call shq,$(1)))"'
+
 ### Global variables
 
 ## comma, empty, space: handy variables as these tokens are either
diff --git a/t/Makefile b/t/Makefile
index 882d26eee30..4168b5c6ce6 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -1,3 +1,6 @@
+# Import tree-wide shared Makefile behavior and libraries
+include ../shared.mak
+
 # Run tests
 #
 # Copyright (c) 2005 Junio C Hamano
@@ -24,13 +27,6 @@ TEST_RESULTS_DIRECTORY = test-results
 CHAINLINTTMP = chainlinttmp
 endif
 
-# Shell quote;
-SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
-TEST_SHELL_PATH_SQ = $(subst ','\'',$(TEST_SHELL_PATH))
-PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
-TEST_RESULTS_DIRECTORY_SQ = $(subst ','\'',$(TEST_RESULTS_DIRECTORY))
-CHAINLINTTMP_SQ = $(subst ','\'',$(CHAINLINTTMP))
-
 T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
 TGITWEB = $(sort $(wildcard t95[0-9][0-9]-*.sh))
 THELPERS = $(sort $(filter-out $(T),$(wildcard *.sh)))
@@ -44,38 +40,38 @@ test: pre-clean check-chainlint $(TEST_LINT)
 	$(MAKE) aggregate-results-and-cleanup
 
 failed:
-	@failed=$$(cd '$(TEST_RESULTS_DIRECTORY_SQ)' && \
+	@failed=$$(cd $(call shellquote,$(TEST_RESULTS_DIRECTORY)) && \
 		grep -l '^failed [1-9]' *.counts | \
 		sed -n 's/\.counts$$/.sh/p') && \
 	test -z "$$failed" || $(MAKE) $$failed
 
 prove: pre-clean check-chainlint $(TEST_LINT)
-	@echo "*** prove ***"; $(PROVE) --exec '$(TEST_SHELL_PATH_SQ)' $(GIT_PROVE_OPTS) $(T) :: $(GIT_TEST_OPTS)
+	@echo "*** prove ***"; $(PROVE) --exec $(call shellquote,$(SHELL_PATH)) $(GIT_PROVE_OPTS) $(T) :: $(GIT_TEST_OPTS)
 	$(MAKE) clean-except-prove-cache
 
 $(T):
-	@echo "*** $@ ***"; '$(TEST_SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
+	@echo "*** $@ ***"; $(call shellquote,$(SHELL_PATH)) $@ $(GIT_TEST_OPTS)
 
 pre-clean:
-	$(RM) -r '$(TEST_RESULTS_DIRECTORY_SQ)'
+	$(RM) -r $(call shellquote,$(TEST_RESULTS_DIRECTORY))
 
 clean-except-prove-cache: clean-chainlint
-	$(RM) -r 'trash directory'.* '$(TEST_RESULTS_DIRECTORY_SQ)'
+	$(RM) -r 'trash directory'.* $(call shellquote,$(TEST_RESULTS_DIRECTORY))
 	$(RM) -r valgrind/bin
 
 clean: clean-except-prove-cache
 	$(RM) .prove
 
 clean-chainlint:
-	$(RM) -r '$(CHAINLINTTMP_SQ)'
+	$(RM) -r $(call shellquote,$(CHAINLINTTMP))
 
 check-chainlint:
-	@mkdir -p '$(CHAINLINTTMP_SQ)' && \
+	@mkdir -p $(call shellquote,$(CHAINLINTTMP)) && \
 	err=0 && \
 	for i in $(CHAINLINTTESTS); do \
 		$(CHAINLINT) <chainlint/$$i.test | \
-		sed -e '/^# LINT: /d' >'$(CHAINLINTTMP_SQ)'/$$i.actual && \
-		diff -u chainlint/$$i.expect '$(CHAINLINTTMP_SQ)'/$$i.actual || err=1; \
+		sed -e '/^# LINT: /d' >$(call shellquote,$(CHAINLINTTMP))/$$i.actual && \
+		diff -u chainlint/$$i.expect $(call shellquote,$(CHAINLINTTMP))/$$i.actual || err=1; \
 	done && exit $$err
 
 test-lint: test-lint-duplicates test-lint-executable test-lint-shell-syntax \
@@ -92,7 +88,7 @@ test-lint-executable:
 		echo >&2 "non-executable tests:" $$bad; exit 1; }
 
 test-lint-shell-syntax:
-	@'$(PERL_PATH_SQ)' check-non-portable-shell.pl $(T) $(THELPERS) $(TPERF)
+	@$(call shellquote,$(PERL_PATH)) check-non-portable-shell.pl $(T) $(THELPERS) $(TPERF)
 
 test-lint-filenames:
 	@# We do *not* pass a glob to ls-files but use grep instead, to catch
@@ -107,9 +103,9 @@ aggregate-results-and-cleanup: $(T)
 	$(MAKE) clean
 
 aggregate-results:
-	for f in '$(TEST_RESULTS_DIRECTORY_SQ)'/t*-*.counts; do \
+	for f in $(call shellquote,$(TEST_RESULTS_DIRECTORY))/t*-*.counts; do \
 		echo "$$f"; \
-	done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
+	done | $(call shellquote,$(SHELL_PATH)) ./aggregate-results.sh
 
 gitweb-test:
 	$(MAKE) $(TGITWEB)
diff --git a/templates/Makefile b/templates/Makefile
index d22a71a3999..c9251a96622 100644
--- a/templates/Makefile
+++ b/templates/Makefile
@@ -1,3 +1,6 @@
+# Import tree-wide shared Makefile behavior and libraries
+include ../shared.mak
+
 # make and install sample templates
 
 ifndef V
@@ -18,13 +21,6 @@ ifndef PERL_PATH
 	PERL_PATH = perl
 endif
 
-SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
-PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
-
-# Shell quote (do not use $(call) to accommodate ancient setups);
-DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
-template_instdir_SQ = $(subst ','\'',$(template_instdir))
-
 all: boilerplates.made custom
 
 # Put templates that can be copied straight from the source
@@ -61,6 +57,6 @@ clean:
 	$(RM) -r blt boilerplates.made
 
 install: all
-	$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(template_instdir_SQ)'
+	$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_instdir))
 	(cd blt && $(TAR) cf - .) | \
-	(cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xof -)
+	(cd $(call shellquote,$(DESTDIR)$(template_instdir)) && umask 022 && $(TAR) xof -)
-- 
2.34.0.795.g1e9501ab396
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 58 of 107 in “Makefiles: dependency correctness & speedup”
  1. 00/16 Makefiles: dependency correctness & speedupÆvar Arnfjörð Bjarmason, Nov 6, 2021
  2. 02/16 Makefile: clean perl/build/ even with NO_PERL=YÆvar Arnfjörð Bjarmason, Nov 6, 2021
  3. Junio C HamanoNov 9, 2021
  4. 01/16 Makefile: don't set up "perl/build" rules under NO_PERL=YÆvar Arnfjörð Bjarmason, Nov 6, 2021
  5. 03/16 Makefile: remove "mv $@ $@+" dance redundant to .DELETE_ON_ERRORÆvar Arnfjörð Bjarmason, Nov 6, 2021
  6. 04/16 Makefile: move Perl-only variable assignments under !NO_PERLÆvar Arnfjörð Bjarmason, Nov 6, 2021
  7. Junio C HamanoNov 9, 2021
  8. 05/16 Makefile: correct "GIT-PERL-{DEFINES,HEADER}" dependency graphÆvar Arnfjörð Bjarmason, Nov 6, 2021
  9. Eric SunshineNov 7, 2021
  10. 06/16 Makefile: don't have Perl over-depend on GIT-BUILD-OPTIONSÆvar Arnfjörð Bjarmason, Nov 6, 2021
  11. 07/16 Makefile: create a GIT-PYTHON-DEFINES, like "PERL"Ævar Arnfjörð Bjarmason, Nov 6, 2021
  12. Eric SunshineNov 7, 2021
  13. 08/16 Makefile: stop needing @@GIT_VERSION@@ in *.perl scriptsÆvar Arnfjörð Bjarmason, Nov 6, 2021
  14. 09/16 Makefiles: add "shared.mak", move ".DELETE_ON_ERROR" to itÆvar Arnfjörð Bjarmason, Nov 6, 2021
  15. 10/16 Makefile: move $(comma), $(empty) and $(space) to shared.makÆvar Arnfjörð Bjarmason, Nov 6, 2021
  16. 11/16 Makefile: re-add and use the "shellquote" macrosÆvar Arnfjörð Bjarmason, Nov 6, 2021
  17. 12/16 Makefile: add a "TRACK_template" for GIT-*{FLAGS,DEFINES,...}Ævar Arnfjörð Bjarmason, Nov 6, 2021
  18. 13/16 Makefile: add "$(QUIET)" boilerplate to shared.makÆvar Arnfjörð Bjarmason, Nov 6, 2021
  19. 14/16 Makefile: use $(wspfx) for $(QUIET...) in shared.makÆvar Arnfjörð Bjarmason, Nov 6, 2021
  20. 15/16 Makefiles: add and use wildcard "mkdir -p" templateÆvar Arnfjörð Bjarmason, Nov 6, 2021
  21. 16/16 Makefile: don't invoke msgfmt with --statisticsÆvar Arnfjörð Bjarmason, Nov 6, 2021
  22. 00/18 Makefiles: dependency correctness & speedupÆvar Arnfjörð Bjarmason, Nov 12, 2021
  23. 01/18 Makefile: don't invoke msgfmt with --statisticsÆvar Arnfjörð Bjarmason, Nov 12, 2021
  24. 02/18 Makefile: don't set up "perl/build" rules under NO_PERL=YÆvar Arnfjörð Bjarmason, Nov 12, 2021
  25. 03/18 Makefile: use "=" not ":=" for po/* and perl/*Ævar Arnfjörð Bjarmason, Nov 12, 2021
  26. 04/18 Makefile: clean perl/build/ even with NO_PERL=YÆvar Arnfjörð Bjarmason, Nov 12, 2021
  27. 05/18 Makefile: remove "mv $@ $@+" dance redundant to .DELETE_ON_ERRORÆvar Arnfjörð Bjarmason, Nov 12, 2021
  28. 07/18 Makefile: change "ifndef NO_PERL" to "ifdef NO_PERL"Ævar Arnfjörð Bjarmason, Nov 12, 2021
  29. 09/18 Makefile: correct "GIT-PERL-{DEFINES,HEADER}" dependency graphÆvar Arnfjörð Bjarmason, Nov 12, 2021
  30. 06/18 Makefile: guard Perl-only variable assignmentsÆvar Arnfjörð Bjarmason, Nov 12, 2021
  31. 08/18 Makefile: adjust Perl-related comments & whitespaceÆvar Arnfjörð Bjarmason, Nov 12, 2021
  32. 10/18 Makefile: create a GIT-PYTHON-DEFINES, like "PERL"Ævar Arnfjörð Bjarmason, Nov 12, 2021
  33. 12/18 Makefiles: add "shared.mak", move ".DELETE_ON_ERROR" to itÆvar Arnfjörð Bjarmason, Nov 12, 2021
  34. 13/18 Makefile: move $(comma), $(empty) and $(space) to shared.makÆvar Arnfjörð Bjarmason, Nov 12, 2021
  35. 14/18 Makefile: re-add and use the "shellquote" macrosÆvar Arnfjörð Bjarmason, Nov 12, 2021
  36. 11/18 Makefile: stop needing @@GIT_VERSION@@ in *.perl scriptsÆvar Arnfjörð Bjarmason, Nov 12, 2021
  37. 16/18 Makefile: add "$(QUIET)" boilerplate to shared.makÆvar Arnfjörð Bjarmason, Nov 12, 2021
  38. 15/18 Makefile: add a "TRACK_template" for GIT-*{FLAGS,DEFINES,...}Ævar Arnfjörð Bjarmason, Nov 12, 2021
  39. 17/18 Makefile: use $(wspfx) for $(QUIET...) in shared.makÆvar Arnfjörð Bjarmason, Nov 12, 2021
  40. 18/18 Makefiles: add and use wildcard "mkdir -p" templateÆvar Arnfjörð Bjarmason, Nov 12, 2021
  41. 00/23 Makefile: dependency fixes, make noop runtime ~1.4x fasterÆvar Arnfjörð Bjarmason, Nov 16, 2021
  42. 02/23 Makefile: don't set up "perl/build" rules under NO_PERL=YÆvar Arnfjörð Bjarmason, Nov 16, 2021
  43. 01/23 Makefile: don't invoke msgfmt with --statisticsÆvar Arnfjörð Bjarmason, Nov 16, 2021
  44. 03/23 Makefile: use "=" not ":=" for po/* and perl/*Ævar Arnfjörð Bjarmason, Nov 16, 2021
  45. Mike HommeyNov 17, 2021
  46. 04/23 Makefile: clean perl/build/ even with NO_PERL=YÆvar Arnfjörð Bjarmason, Nov 16, 2021
  47. 06/23 Makefile: guard Perl-only variable assignmentsÆvar Arnfjörð Bjarmason, Nov 16, 2021
  48. 05/23 Makefile: remove "mv $@ $@+" dance redundant to .DELETE_ON_ERRORÆvar Arnfjörð Bjarmason, Nov 16, 2021
  49. Mike HommeyNov 17, 2021
  50. Ævar Arnfjörð BjarmasonNov 17, 2021
  51. 10/23 Makefile: create a GIT-PYTHON-DEFINES, like "PERL"Ævar Arnfjörð Bjarmason, Nov 16, 2021
  52. 12/23 Makefiles: add "shared.mak", move ".DELETE_ON_ERROR" to itÆvar Arnfjörð Bjarmason, Nov 16, 2021
  53. 11/23 Makefile: stop needing @@GIT_VERSION@@ in *.perl scriptsÆvar Arnfjörð Bjarmason, Nov 16, 2021
  54. 09/23 Makefile: correct "GIT-PERL-{DEFINES,HEADER}" dependency graphÆvar Arnfjörð Bjarmason, Nov 16, 2021
  55. 08/23 Makefile: adjust Perl-related comments & whitespaceÆvar Arnfjörð Bjarmason, Nov 16, 2021
  56. 07/23 Makefile: change "ifndef NO_PERL" to "ifdef NO_PERL"Ævar Arnfjörð Bjarmason, Nov 16, 2021
  57. 13/23 Makefile: move $(comma), $(empty) and $(space) to shared.makÆvar Arnfjörð Bjarmason, Nov 16, 2021
  58. 14/23 Makefile: re-add and use the "shellquote" macrosÆvar Arnfjörð Bjarmason, Nov 16, 2021
  59. 16/23 Makefile: add "$(QUIET)" boilerplate to shared.makÆvar Arnfjörð Bjarmason, Nov 16, 2021
  60. 15/23 Makefile: add a "TRACK_template" for GIT-*{FLAGS,DEFINES,...}Ævar Arnfjörð Bjarmason, Nov 16, 2021
  61. Mike HommeyNov 17, 2021
  62. Ævar Arnfjörð BjarmasonNov 17, 2021
  63. 17/23 Makefile: use $(wspfx) for $(QUIET...) in shared.makÆvar Arnfjörð Bjarmason, Nov 16, 2021
  64. 18/23 Makefiles: add and use wildcard "mkdir -p" templateÆvar Arnfjörð Bjarmason, Nov 16, 2021
  65. Mike HommeyNov 17, 2021
  66. Ævar Arnfjörð BjarmasonNov 17, 2021
  67. Mike HommeyNov 17, 2021
  68. Ævar Arnfjörð BjarmasonNov 17, 2021
  69. Mike HommeyNov 18, 2021
  70. Ævar Arnfjörð BjarmasonNov 18, 2021
  71. 21/23 Makefile: disable GNU make built-in wildcard rulesÆvar Arnfjörð Bjarmason, Nov 16, 2021
  72. Mike HommeyNov 17, 2021
  73. Ævar Arnfjörð BjarmasonNov 17, 2021
  74. 22/23 Makefile: define $(LIB_H) in terms of $(FIND_SOURCE_FILES)Ævar Arnfjörð Bjarmason, Nov 16, 2021
  75. 23/23 Makefile: move ".SUFFIXES" rule to shared.makÆvar Arnfjörð Bjarmason, Nov 16, 2021
  76. 20/23 Makefile: use $(file) I/O instead of "FORCE" when possibleÆvar Arnfjörð Bjarmason, Nov 16, 2021
  77. 19/23 Makefile: correct the dependency graph of hook-list.hÆvar Arnfjörð Bjarmason, Nov 16, 2021
  78. Mike HommeyNov 17, 2021
  79. 00/23 Makefile: dependency fixes, make noop runtime ~1.4x fasterÆvar Arnfjörð Bjarmason, Nov 17, 2021
  80. 01/23 Makefile: don't invoke msgfmt with --statisticsÆvar Arnfjörð Bjarmason, Nov 17, 2021
  81. 02/23 Makefile: don't set up "perl/build" rules under NO_PERL=YÆvar Arnfjörð Bjarmason, Nov 17, 2021
  82. 03/23 Makefile: use "=" not ":=" for po/* and perl/*Ævar Arnfjörð Bjarmason, Nov 17, 2021
  83. 04/23 Makefile: clean perl/build/ even with NO_PERL=YÆvar Arnfjörð Bjarmason, Nov 17, 2021
  84. 05/23 Makefile: remove "mv $@ $@+" dance redundant to .DELETE_ON_ERRORÆvar Arnfjörð Bjarmason, Nov 17, 2021
  85. 07/23 Makefile: change "ifndef NO_PERL" to "ifdef NO_PERL"Ævar Arnfjörð Bjarmason, Nov 17, 2021
  86. 06/23 Makefile: guard Perl-only variable assignmentsÆvar Arnfjörð Bjarmason, Nov 17, 2021
  87. 08/23 Makefile: adjust Perl-related comments & whitespaceÆvar Arnfjörð Bjarmason, Nov 17, 2021
  88. 09/23 Makefile: correct "GIT-PERL-{DEFINES,HEADER}" dependency graphÆvar Arnfjörð Bjarmason, Nov 17, 2021
  89. 10/23 Makefile: create a GIT-PYTHON-DEFINES, like "PERL"Ævar Arnfjörð Bjarmason, Nov 17, 2021
  90. 11/23 Makefile: stop needing @@GIT_VERSION@@ in *.perl scriptsÆvar Arnfjörð Bjarmason, Nov 17, 2021
  91. 12/23 Makefiles: add "shared.mak", move ".DELETE_ON_ERROR" to itÆvar Arnfjörð Bjarmason, Nov 17, 2021
  92. 13/23 Makefile: move $(comma), $(empty) and $(space) to shared.makÆvar Arnfjörð Bjarmason, Nov 17, 2021
  93. 14/23 Makefile: re-add and use the "shellquote" macrosÆvar Arnfjörð Bjarmason, Nov 17, 2021
  94. Junio C HamanoDec 13, 2021
  95. Junio C HamanoDec 14, 2021
  96. 15/23 Makefile: add a "TRACK_template" for GIT-*{FLAGS,DEFINES,...}Ævar Arnfjörð Bjarmason, Nov 17, 2021
  97. Junio C HamanoNov 19, 2021
  98. Junio C HamanoNov 19, 2021
  99. Ævar Arnfjörð BjarmasonNov 19, 2021
  100. 16/23 Makefile: add "$(QUIET)" boilerplate to shared.makÆvar Arnfjörð Bjarmason, Nov 17, 2021
  101. 17/23 Makefile: use $(wspfx) for $(QUIET...) in shared.makÆvar Arnfjörð Bjarmason, Nov 17, 2021
  102. 18/23 Makefiles: add and use wildcard "mkdir -p" templateÆvar Arnfjörð Bjarmason, Nov 17, 2021
  103. 19/23 Makefile: correct the dependency graph of hook-list.hÆvar Arnfjörð Bjarmason, Nov 17, 2021
  104. 20/23 Makefile: use $(file) I/O instead of "FORCE" when possibleÆvar Arnfjörð Bjarmason, Nov 17, 2021
  105. 21/23 Makefile: disable GNU make built-in wildcard rulesÆvar Arnfjörð Bjarmason, Nov 17, 2021
  106. 22/23 Makefile: define $(LIB_H) in terms of $(FIND_SOURCE_FILES)Ævar Arnfjörð Bjarmason, Nov 17, 2021
  107. 23/23 Makefile: move ".SUFFIXES" rule to shared.makÆvar Arnfjörð Bjarmason, Nov 17, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.