Skip to content

Instantly share code, notes, and snippets.

@MikeRalphson
Created March 17, 2009 14:52
Show Gist options
  • Save MikeRalphson/80578 to your computer and use it in GitHub Desktop.
Save MikeRalphson/80578 to your computer and use it in GitHub Desktop.
partial git.git Makefile fix, needs to regenerate GIT_BUILD_OPTIONS only when it changes
diff --git a/Makefile b/Makefile
index 2b873fa..159b8be 100644
--- a/Makefile
+++ b/Makefile
@@ -1159,7 +1159,7 @@ common-cmds.h: ./generate-cmdlist.sh command-list.txt
common-cmds.h: $(wildcard Documentation/git-*.txt)
$(QUIET_GEN)./generate-cmdlist.sh > $@+ && mv $@+ $@
-$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
+$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh GIT-BUILD-OPTIONS
$(QUIET_GEN)$(RM) $@ $@+ && \
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
-e 's|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment