@@ -777,20 +777,6 @@ BUILT_INS += git-status$X
777777BUILT_INS += git-switch$X
778778BUILT_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
795781OTHER_PROGRAMS = git$X
796782
@@ -1226,6 +1212,20 @@ ifdef DEVELOPER
12261212include config.mak.dev
12271213endif
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+
12291229ALL_CFLAGS = $(DEVELOPER_CFLAGS ) $(CPPFLAGS ) $(CFLAGS )
12301230ALL_LDFLAGS = $(LDFLAGS )
12311231
0 commit comments