Skip to content

Commit 114d64b

Browse files
committed
Merge branch 'ab/makefile-pager-env-is-used-only-by-pager.c'
* ab/makefile-pager-env-is-used-only-by-pager.c: Makefile: move -DPAGER_ENV from BASIC_CFLAGS to EXTRA_CPPFLAGS
2 parents 43f196c + 451a7db commit 114d64b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,11 +2112,6 @@ ifdef DEFAULT_HELP_FORMAT
21122112
BASIC_CFLAGS += -DDEFAULT_HELP_FORMAT='"$(DEFAULT_HELP_FORMAT)"'
21132113
endif
21142114

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-
21202115
ALL_CFLAGS += $(BASIC_CFLAGS)
21212116
ALL_LDFLAGS += $(BASIC_LDFLAGS)
21222117

@@ -2231,6 +2226,12 @@ builtin/help.sp builtin/help.s builtin/help.o: EXTRA_CPPFLAGS = \
22312226
'-DGIT_MAN_PATH="$(mandir_relative_SQ)"' \
22322227
'-DGIT_INFO_PATH="$(infodir_relative_SQ)"'
22332228

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+
22342235
version.sp version.s version.o: GIT-VERSION-FILE GIT-USER-AGENT
22352236
version.sp version.s version.o: EXTRA_CPPFLAGS = \
22362237
'-DGIT_VERSION="$(GIT_VERSION)"' \

0 commit comments

Comments
 (0)