@matheusbsbs / matheus-bagliano / commits / 0b5ea163d2
Fork 0

git-gui: Make 'make' quieter by default

To fit nicely into the output of the git.git project's own quieter Makefile, we want to make the git-gui Makefile nice and quiet too. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Mar 6, 2007 at 02:13 UTC 0b5ea163d21163343579cd6eb9274ccc2190a0fe
1 file changed +15 -7
Makefile
+15 -7
@@ -1,5 +1,8 @@
1 all::
2
3 +# Define V=1 to have a more verbose compile.
4 +#
5 +
6 GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
7 @$(SHELL_PATH) ./GIT-VERSION-GEN
8 -include GIT-VERSION-FILE
@@ -19,27 +22,32 @@ ifndef INSTALL
22 INSTALL = install
23 endif
24
25 +ifndef V
26 + QUIET_GEN = @echo ' ' GEN $@;
27 + QUIET_BUILT_IN = @echo ' ' BUILTIN $@;
28 +endif
29 +
30 DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
31 gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
32 SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
33
34 git-gui: git-gui.sh GIT-VERSION-FILE CREDITS-FILE
27 - rm -f $@ $@+
35 + $(QUIET_GEN)rm -f $@ $@+ && \
36 sed -n \
37 -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
38 -e 's/@@GITGUI_VERSION@@/$(GITGUI_VERSION)/g' \
39 -e '1,/^set gitgui_credits /p' \
32 - $@.sh >$@+
33 - cat CREDITS-FILE >>$@+
34 - sed -e '1,/^set gitgui_credits /d' $@.sh >>$@+
35 - chmod +x $@+
40 + $@.sh >$@+ && \
41 + cat CREDITS-FILE >>$@+ && \
42 + sed -e '1,/^set gitgui_credits /d' $@.sh >>$@+ && \
43 + chmod +x $@+ && \
44 mv $@+ $@
45
46 CREDITS-FILE: CREDITS-GEN .FORCE-CREDITS-FILE
39 - $(SHELL_PATH) ./CREDITS-GEN
47 + $(QUIET_GEN)$(SHELL_PATH) ./CREDITS-GEN
48
49 $(GITGUI_BUILT_INS): git-gui
42 - rm -f $@ && ln git-gui $@
50 + $(QUIET_BUILT_IN)rm -f $@ && ln git-gui $@
51
52 all:: $(ALL_PROGRAMS)
53