Skip to content

Commit b778c1e

Browse files
committed
Merge branch 'js/skip-dashed-built-ins-from-config-mak' into maint
Build fix. * js/skip-dashed-built-ins-from-config-mak: SKIP_DASHED_BUILT_INS: respect `config.mak`
2 parents 93da966 + 4a5ec7d commit b778c1e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Makefile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -777,20 +777,6 @@ BUILT_INS += git-status$X
777777
BUILT_INS += git-switch$X
778778
BUILT_INS += git-whatchanged$X
779779

780-
# what 'all' will build and 'install' will install in gitexecdir,
781-
# excluding programs for built-in commands
782-
ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS)
783-
ALL_COMMANDS_TO_INSTALL = $(ALL_PROGRAMS)
784-
ifeq (,$(SKIP_DASHED_BUILT_INS))
785-
ALL_COMMANDS_TO_INSTALL += $(BUILT_INS)
786-
else
787-
# git-upload-pack, git-receive-pack and git-upload-archive are special: they
788-
# are _expected_ to be present in the `bin/` directory in their dashed form.
789-
ALL_COMMANDS_TO_INSTALL += git-receive-pack$(X)
790-
ALL_COMMANDS_TO_INSTALL += git-upload-archive$(X)
791-
ALL_COMMANDS_TO_INSTALL += git-upload-pack$(X)
792-
endif
793-
794780
# what 'all' will build but not install in gitexecdir
795781
OTHER_PROGRAMS = git$X
796782

@@ -1226,6 +1212,20 @@ ifdef DEVELOPER
12261212
include config.mak.dev
12271213
endif
12281214

1215+
# what 'all' will build and 'install' will install in gitexecdir,
1216+
# excluding programs for built-in commands
1217+
ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS)
1218+
ALL_COMMANDS_TO_INSTALL = $(ALL_PROGRAMS)
1219+
ifeq (,$(SKIP_DASHED_BUILT_INS))
1220+
ALL_COMMANDS_TO_INSTALL += $(BUILT_INS)
1221+
else
1222+
# git-upload-pack, git-receive-pack and git-upload-archive are special: they
1223+
# are _expected_ to be present in the `bin/` directory in their dashed form.
1224+
ALL_COMMANDS_TO_INSTALL += git-receive-pack$(X)
1225+
ALL_COMMANDS_TO_INSTALL += git-upload-archive$(X)
1226+
ALL_COMMANDS_TO_INSTALL += git-upload-pack$(X)
1227+
endif
1228+
12291229
ALL_CFLAGS = $(DEVELOPER_CFLAGS) $(CPPFLAGS) $(CFLAGS)
12301230
ALL_LDFLAGS = $(LDFLAGS)
12311231

0 commit comments

Comments
 (0)