diff --git a/Makefile b/Makefile index b5530cbaae9..4ff3faa4721 100644 --- a/Makefile +++ b/Makefile @@ -452,6 +452,9 @@ PROGRAM_OBJS += http-backend.o PROGRAM_OBJS += sh-i18n--envsubst.o PROGRAM_OBJS += credential-store.o +# Binary suffix, set to .exe for Windows builds +X = + PROGRAMS += $(patsubst %.o,git-%$X,$(PROGRAM_OBJS)) TEST_PROGRAMS_NEED_X += test-chmtime