zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Reduce build verbosity when updating timestamp files
@ 2014-07-26 16:53 Bart Schaefer
  2014-07-28  8:46 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2014-07-26 16:53 UTC (permalink / raw)
  To: zsh-workers

Anyone have any objection to this?  It puts a leading @ on the commands
in Makemod that do nothing but update timestamps, so that "make" is less
verbose when there's nothing to be rebuilt.


diff --git a/Src/mkmakemod.sh b/Src/mkmakemod.sh
index 2633c27..0021609 100644
--- a/Src/mkmakemod.sh
+++ b/Src/mkmakemod.sh
@@ -307,10 +307,10 @@ if $first_stage; then
 	echo "\$(SYMS_${mddname}): \$(PROTODEPS)"
 	echo
 	echo "${mddname}.export: \$(SYMS_${mddname})"
-	echo "	( echo '#!'; cat \$(SYMS_${mddname}) | sed -n '/^X/{s/^X//;p;}' | sort -u ) > \$@"
+	echo "	@( echo '#!'; cat \$(SYMS_${mddname}) | sed -n '/^X/{s/^X//;p;}' | sort -u ) > \$@"
 	echo
 	echo "modobjs.${mddname}: \$(MODOBJS_${mddname})"
-	echo "	echo '' \$(MODOBJS_${mddname}) $modobjs_sed>> \$(dir_src)/stamp-modobjs.tmp"
+	echo "	@echo '' \$(MODOBJS_${mddname}) $modobjs_sed>> \$(dir_src)/stamp-modobjs.tmp"
 	echo
 	if test -z "$alwayslink"; then
 	    case " $all_modules" in *" ${mddname}."*)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Reduce build verbosity when updating timestamp files
  2014-07-26 16:53 [PATCH] Reduce build verbosity when updating timestamp files Bart Schaefer
@ 2014-07-28  8:46 ` Peter Stephenson
  2014-07-28 15:39   ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2014-07-28  8:46 UTC (permalink / raw)
  To: zsh-workers

On Sat, 26 Jul 2014 09:53:20 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> Anyone have any objection to this?  It puts a leading @ on the commands
> in Makemod that do nothing but update timestamps, so that "make" is less
> verbose when there's nothing to be rebuilt.

I think that's fine.

Just as a vaguely related point that doesn't actually have a lot to do
with this --- there's one place where I quite like the verbosity:
sometimes I build from the archive on a machine that doesn't have
autoconf, and I run autoconf on a machine with access to the same disk.
After running configure on the build machine, I have to make some
timestamp file on the other machine to get he headers sorted out (only
the first time after configure.ac changed).  So it's useful to see what
that is.  However, I have a feeling I end up digging in the Makefile
anyway.  There may be a better solution to this.

pws


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Reduce build verbosity when updating timestamp files
  2014-07-28  8:46 ` Peter Stephenson
@ 2014-07-28 15:39   ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2014-07-28 15:39 UTC (permalink / raw)
  To: zsh-workers

On Jul 28,  9:46am, Peter Stephenson wrote:
}
} sometimes I build from the archive on a machine that doesn't have
} autoconf, and I run autoconf on a machine with access to the same disk.
} After running configure on the build machine, I have to make some
} timestamp file on the other machine to get he headers sorted out (only
} the first time after configure.ac changed).  So it's useful to see what
} that is.  However, I have a feeling I end up digging in the Makefile
} anyway.  There may be a better solution to this.

I do this all the time.  You need to touch these three files:

    config.h.in
    configure
    stamp-h.in

"make" will then proceed through re-running configure and rebuilding.

My current minor peeve is that config.modules keeps getting reset to the
default and I haven't figured out where.  I've taken to keeping a copy
as config.modules.local and manually copying it back to config.modules
from time to time.  I should automate that somehow, I suppose, but in
the rare event that a new module gets added that would stomp on it.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-28 15:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26 16:53 [PATCH] Reduce build verbosity when updating timestamp files Bart Schaefer
2014-07-28  8:46 ` Peter Stephenson
2014-07-28 15:39   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).