--- ./Makefile.orig 2007-04-04 03:40:33.000000000 -0500 +++ ./Makefile 2007-04-08 14:24:01.000000000 -0500 @@ -123,7 +123,7 @@ # CFLAGS and LDFLAGS are for the users to override from the command line. -CFLAGS = -g -O2 -Wall +CFLAGS := -g -O2 -Wall LDFLAGS = ALL_CFLAGS = $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS) @@ -682,7 +682,7 @@ help.o: common-cmds.h $(BUILT_INS): git$X - $(QUIET_BUILT_IN)rm -f $@ && ln git$X $@ + $(QUIET_BUILT_IN)rm -f $@ && ln -sf git$X $@ common-cmds.h: Documentation/git-*.txt $(QUIET_GEN)./generate-cmdlist.sh > $@+ && mv $@+ $@ @@ -891,7 +891,9 @@ install: all $(INSTALL) -d -m755 '$(DESTDIR_SQ)$(bindir_SQ)' $(INSTALL) -d -m755 '$(DESTDIR_SQ)$(gitexecdir_SQ)' - $(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexecdir_SQ)' + for F in $(ALL_PROGRAMS) ; do \ + $(INSTALL) $$F '$(DESTDIR_SQ)$(gitexecdir_SQ)' ; \ + done $(INSTALL) git$X '$(DESTDIR_SQ)$(bindir_SQ)' $(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install $(MAKE) -C perl prefix='$(prefix_SQ)' install