]> git.eshelyaron.com Git - emacs.git/commitdiff
Less 'make' chatter for VCSWITNESS
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Jan 2015 02:40:51 +0000 (18:40 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Jan 2015 02:54:33 +0000 (18:54 -0800)
* Makefile.in (dirstate, VCSWITNESS): New macros.
(src): Use them to lessen 'make' chatter.

ChangeLog
Makefile.in

index 0efa32aec55f582976fdc47ace7a1c6268a1abeb..9207bd5f104230332bee1e05d38c09a91c0281f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Less 'make' chatter for VCSWITNESS
+       * Makefile.in (dirstate, VCSWITNESS): New macros.
+       (src): Use them to lessen 'make' chatter.
+
 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix copyright years by hand
index b8d914b3bd7bbf64d529e32faa7311b53b8a5282..7b271f124241a3ed8ebf52565ebbd277218ce469 100644 (file)
@@ -389,15 +389,13 @@ lib lib-src lisp nt: Makefile
 # repository pull. In git there is no single file that guarantees
 # this, but the local log for the current head should be close enough.
 #
-# Note the use of single quotes in the value of vcswitness.
-# This passes an unexpanded $srcdir to src's Makefile, which then
+# Pass an unexpanded $srcdir to src's Makefile, which then
 # expands it using its own value of srcdir (which points to the
 # source directory of src/).
+dirstate = .git/logs/HEAD
+VCSWITNESS = $(if $(wildcard $(srcdir)/$(dirstate)),$$(srcdir)/../$(dirstate))
 src: Makefile
-       dirstate='.git/logs/HEAD';                              \
-       vcswitness='$$(srcdir)/../'$$dirstate;                          \
-       [ -r "$(srcdir)/$$dirstate" ] || vcswitness='';                 \
-       $(MAKE) -C $@ all VCSWITNESS="$$vcswitness"
+       $(MAKE) -C $@ VCSWITNESS='$(VCSWITNESS)' all
 
 blessmail: Makefile src
        $(MAKE) -C lib-src maybe-blessmail