@@ -2112,11 +2112,6 @@ ifdef DEFAULT_HELP_FORMAT
2112
2112
BASIC_CFLAGS += -DDEFAULT_HELP_FORMAT='"$(DEFAULT_HELP_FORMAT ) "'
2113
2113
endif
2114
2114
2115
- PAGER_ENV_SQ = $(subst ','\'',$(PAGER_ENV ) )
2116
- PAGER_ENV_CQ = "$(subst ",\",$(subst \,\\,$(PAGER_ENV ) ) ) "
2117
- PAGER_ENV_CQ_SQ = $(subst ','\'',$(PAGER_ENV_CQ ) )
2118
- BASIC_CFLAGS += -DPAGER_ENV='$(PAGER_ENV_CQ_SQ ) '
2119
-
2120
2115
ALL_CFLAGS += $(BASIC_CFLAGS )
2121
2116
ALL_LDFLAGS += $(BASIC_LDFLAGS )
2122
2117
@@ -2231,6 +2226,12 @@ builtin/help.sp builtin/help.s builtin/help.o: EXTRA_CPPFLAGS = \
2231
2226
' -DGIT_MAN_PATH="$(mandir_relative_SQ)"' \
2232
2227
' -DGIT_INFO_PATH="$(infodir_relative_SQ)"'
2233
2228
2229
+ PAGER_ENV_SQ = $(subst ','\'',$(PAGER_ENV ) )
2230
+ PAGER_ENV_CQ = "$(subst ",\",$(subst \,\\,$(PAGER_ENV ) ) ) "
2231
+ PAGER_ENV_CQ_SQ = $(subst ','\'',$(PAGER_ENV_CQ ) )
2232
+ pager.sp pager.s pager.o : EXTRA_CPPFLAGS = \
2233
+ -DPAGER_ENV=' $(PAGER_ENV_CQ_SQ)'
2234
+
2234
2235
version.sp version.s version.o : GIT-VERSION-FILE GIT-USER-AGENT
2235
2236
version.sp version.s version.o : EXTRA_CPPFLAGS = \
2236
2237
' -DGIT_VERSION="$(GIT_VERSION)"' \
0 commit comments