Quiet up the make process a bit

When we do our sed edits, we really don't need every command printed out to
the terminal. Now with "make -s", the output is quite palatable.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2008-08-23 18:27:01 -05:00
parent da933c223e
commit f1f8f0e1c2
3 changed files with 18 additions and 15 deletions

View file

@ -20,9 +20,10 @@ edit = sed \
-e 's|@ROOTDIR[@]|$(ROOTDIR)|g' -e 's|@ROOTDIR[@]|$(ROOTDIR)|g'
$(dist_sysconf_DATA): Makefile $(dist_sysconf_DATA): Makefile
rm -f $@ $@.tmp @echo ' ' GEN $@;
$(edit) `test -f ./$@.in || echo $(srcdir)/`$@.in >$@.tmp @rm -f $@ $@.tmp
mv $@.tmp $@ @$(edit) `test -f ./$@.in || echo $(srcdir)/`$@.in >$@.tmp
@mv $@.tmp $@
makepkg.conf: $(srcdir)/makepkg.conf.in makepkg.conf: $(srcdir)/makepkg.conf.in
pacman.conf: $(srcdir)/pacman.conf.in pacman.conf: $(srcdir)/pacman.conf.in

View file

@ -17,10 +17,11 @@ edit = sed \
$(CONFTESTS): Makefile $(CONFTESTS): Makefile
rm -f $@ $@.tmp @echo ' ' GEN $@;
test -f $(srcdir)/$@.in && $(edit) $(srcdir)/$@.in >$@.tmp || true @rm -f $@ $@.tmp
test -f $@.tmp || false @test -f $(srcdir)/$@.in && $(edit) $(srcdir)/$@.in >$@.tmp || true
chmod a-w $@.tmp @test -f $@.tmp || false
mv $@.tmp $@ @chmod a-w $@.tmp
@mv $@.tmp $@
# vim:set ts=2 sw=2 noet: # vim:set ts=2 sw=2 noet:

View file

@ -46,13 +46,14 @@ edit = sed \
# two 'test' lines- make sure we can handle both sh and py type scripts # two 'test' lines- make sure we can handle both sh and py type scripts
# third 'test' line- make sure one of the two checks succeeded # third 'test' line- make sure one of the two checks succeeded
$(OURSCRIPTS): Makefile $(OURSCRIPTS): Makefile
rm -f $@ $@.tmp @echo ' ' GEN $@;
test -f $(srcdir)/$@.sh.in && $(edit) $(srcdir)/$@.sh.in >$@.tmp || true @rm -f $@ $@.tmp
test -f $(srcdir)/$@.py.in && $(edit) $(srcdir)/$@.py.in >$@.tmp || true @test -f $(srcdir)/$@.sh.in && $(edit) $(srcdir)/$@.sh.in >$@.tmp || true
test -f $@.tmp || false @test -f $(srcdir)/$@.py.in && $(edit) $(srcdir)/$@.py.in >$@.tmp || true
chmod +x $@.tmp @test -f $@.tmp || false
chmod a-w $@.tmp @chmod +x $@.tmp
mv $@.tmp $@ @chmod a-w $@.tmp
@mv $@.tmp $@
makepkg: $(srcdir)/makepkg.sh.in makepkg: $(srcdir)/makepkg.sh.in
pacman-optimize: $(srcdir)/pacman-optimize.sh.in pacman-optimize: $(srcdir)/pacman-optimize.sh.in