@matheusbsbs / matheus-bagliano / commits / 54350a2bb4
Fork 0

git-gui: Makefile: consolidate .FORCE-* targets

Providing multiple targets to force a rebuild is unnecessary complication. Avoid using a name that could conflict with future special targets in GNU make (a leading period followed by uppercase letters). Cc: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Jonathan Nieder committed Jan 6, 2010 at 02:16 UTC 54350a2bb48f2d4cf56bd2b8220fad7124d3592c
1 file changed +3 -4
Makefile
+3 -4
@@ -7,7 +7,7 @@ all::
7 # TCL_PATH must be vaild for this to work.
8 #
9
10 -GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
10 +GIT-VERSION-FILE: FORCE
11 @$(SHELL_PATH) ./GIT-VERSION-GEN
12 -include GIT-VERSION-FILE
13
@@ -270,7 +270,7 @@ TRACK_VARS = \
270 GITGUI_MACOSXAPP=$(GITGUI_MACOSXAPP) \
271 #end TRACK_VARS
272
273 -GIT-GUI-VARS: .FORCE-GIT-GUI-VARS
273 +GIT-GUI-VARS: FORCE
274 @VARS='$(TRACK_VARS)'; \
275 if test x"$$VARS" != x"`cat $@ 2>/dev/null`" ; then \
276 echo 1>&2 " * new locations or Tcl/Tk interpreter"; \
@@ -340,5 +340,4 @@ ifdef GITGUI_WINDOWS_WRAPPER
340 endif
341
342 .PHONY: all install uninstall dist-version clean
343 -.PHONY: .FORCE-GIT-VERSION-FILE
344 -.PHONY: .FORCE-GIT-GUI-VARS
343 +.PHONY: FORCE