aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2015-01-11 18:19:31 -0800
committerPaul Eggert2015-01-11 18:20:08 -0800
commitd703a4dce564ede122f5c307889e4bd0e3f3e75c (patch)
tree6be10648eb114dd29cadcb9be10096920e8d6e9a /src
parentc2774f3733a7bdd58616b42da172d1b32932dd03 (diff)
downloademacs-d703a4dce564ede122f5c307889e4bd0e3f3e75c.tar.gz
emacs-d703a4dce564ede122f5c307889e4bd0e3f3e75c.zip
Have 'make' output better GEN names
* lisp/Makefile.in (PHONY_EXTRAS): New macro. (.PHONY): Depend on it, and on $(lisp)/loaddefs.el, so that the relevant files' time stamps are ignored. (custom-deps, $(lisp)/cus-load.el, finder-data) ($(lisp)/finder-inf.el): Use PHONY_EXTRAS. (custom-deps, $(lisp)/cus-load.el, finder-data) ($(lisp)/finder-inf.el, autoloads, $(lisp)/loaddefs.el) ($(lisp)/subdirs.el, update-subdirs): Output more-accurate destination names with GEN. * src/Makefile.in (gl-stamp, globals.h): Simplify by putting the new contents of globals.h into gl-stamp. This lets us use AM_V_GEN more naturally so that 'make' can output more-accurate names.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/Makefile.in9
2 files changed, 11 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3767622836e..75e9ad51835 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12015-01-12 Paul Eggert <eggert@cs.ucla.edu>
2
3 Have 'make' output better GEN names
4 * Makefile.in (gl-stamp, globals.h): Simplify by putting the new
5 contents of globals.h into gl-stamp. This lets us use AM_V_GEN
6 more naturally so that 'make' can output more-accurate names.
7
12015-01-11 Stefan Monnier <monnier@iro.umontreal.ca> 82015-01-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * buffer.c (init_buffer_once): Initialize buffer_local_flags before 10 * buffer.c (init_buffer_once): Initialize buffer_local_flags before
diff --git a/src/Makefile.in b/src/Makefile.in
index a2754eadacd..2ac34f5c44d 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -492,14 +492,13 @@ buildobj.h: Makefile
492 done >$@.tmp 492 done >$@.tmp
493 $(AM_V_at)mv $@.tmp $@ 493 $(AM_V_at)mv $@.tmp $@
494 494
495globals.h: gl-stamp; @true
496
497GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m) 495GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m)
498 496
499gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES) 497gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES)
500 $(AM_V_GEN)$(libsrc)/make-docfile -d $(srcdir) -g $(obj) > gl.tmp 498 $(AM_V_GEN)$(libsrc)/make-docfile -d $(srcdir) -g $(obj) >$@
501 $(AM_V_at)$(top_srcdir)/build-aux/move-if-change gl.tmp globals.h 499
502 $(AM_V_at)echo timestamp > $@ 500globals.h: gl-stamp
501 $(AM_V_GEN)cmp $< $@ >/dev/null || cp $< $@
503 502
504$(ALLOBJS): globals.h 503$(ALLOBJS): globals.h
505 504