aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2014-07-13 08:50:35 -0700
committerPaul Eggert2014-07-13 08:50:35 -0700
commit4939f58d2c45062d5eac3f4c845b4494cf113f1f (patch)
tree06187e7580bca2d624b9844d543821c50817ac74
parentd105c56ff95893f00e37a20bfd09f155fb87a5b4 (diff)
downloademacs-4939f58d2c45062d5eac3f4c845b4494cf113f1f.tar.gz
emacs-4939f58d2c45062d5eac3f4c845b4494cf113f1f.zip
Improve behavior of 'bzr up; cd src; make -k'.
* Makefile.in (ACLOCAL_INPUTS): Add all m4/*.m4 files. * src/Makefile.in (top_srcdir): New var. (ntsource, lispsource, ALL_CFLAGS, gl-stamp, emacs.res): Use '$(top_srcdir)' instead of '$(srcdir)/..'; its expansion is a bit shorter. (../config.status): Actually build config.status instead of just complaining. (ACLOCAL_INPUTS, AUTOCONF_INPUTS): New macros, copied and relocated from ../Makefile.in. ($(top_srcdir)/aclocal.m4, $(top_srcdir)/configure, config.in) (../config.status, Makefile): New dependencies and rules, copied with relocation from ../Makefile.in. This should be more likely to rebuild the build machinery properly if you do a 'make' in the src directory.
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in2
-rw-r--r--src/ChangeLog17
-rw-r--r--src/Makefile.in25
4 files changed, 39 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index f8852211e9a..f694a42202b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12014-07-13 Paul Eggert <eggert@cs.ucla.edu>
2
3 Improve behavior of 'bzr up; cd src; make -k'.
4 * Makefile.in (ACLOCAL_INPUTS): Add all m4/*.m4 files.
5
12014-07-12 Paul Eggert <eggert@cs.ucla.edu> 62014-07-12 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Merge from gnulib, incorporating: 8 Merge from gnulib, incorporating:
diff --git a/Makefile.in b/Makefile.in
index 6b24147c8d3..a6080e5ce78 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -413,7 +413,7 @@ $(srcdir)/configure: $(AUTOCONF_INPUTS)
413 cd ${srcdir} && ${AUTOCONF} 413 cd ${srcdir} && ${AUTOCONF}
414 414
415ACLOCAL_PATH = @ACLOCAL_PATH@ 415ACLOCAL_PATH = @ACLOCAL_PATH@
416ACLOCAL_INPUTS = $(srcdir)/configure.ac $(srcdir)/m4/gnulib-comp.m4 416ACLOCAL_INPUTS = $(srcdir)/configure.ac $(wildcard $(srcdir)/m4/*.m4)
417$(srcdir)/aclocal.m4: $(ACLOCAL_INPUTS) 417$(srcdir)/aclocal.m4: $(ACLOCAL_INPUTS)
418 cd $(srcdir) && ACLOCAL_PATH='$(ACLOCAL_PATH)' $(ACLOCAL) -I m4 418 cd $(srcdir) && ACLOCAL_PATH='$(ACLOCAL_PATH)' $(ACLOCAL) -I m4
419 419
diff --git a/src/ChangeLog b/src/ChangeLog
index 47b0927bbb7..877898443ec 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12014-07-13 Paul Eggert <eggert@cs.ucla.edu>
2
3 Improve behavior of 'bzr up; cd src; make -k'.
4 * Makefile.in (top_srcdir): New var.
5 (ntsource, lispsource, ALL_CFLAGS, gl-stamp, emacs.res):
6 Use '$(top_srcdir)' instead of '$(srcdir)/..';
7 its expansion is a bit shorter.
8 (../config.status): Actually build config.status instead of
9 just complaining.
10 (ACLOCAL_INPUTS, AUTOCONF_INPUTS):
11 New macros, copied and relocated from ../Makefile.in.
12 ($(top_srcdir)/aclocal.m4, $(top_srcdir)/configure, config.in)
13 (../config.status, Makefile): New dependencies and rules,
14 copied with relocation from ../Makefile.in. This should be more
15 likely to rebuild the build machinery properly if you do a 'make'
16 in the src directory.
17
12014-07-12 Eli Zaretskii <eliz@gnu.org> 182014-07-12 Eli Zaretskii <eliz@gnu.org>
2 19
3 * xdisp.c (display_line): Don't call FETCH_BYTE with argument less 20 * xdisp.c (display_line): Don't call FETCH_BYTE with argument less
diff --git a/src/Makefile.in b/src/Makefile.in
index a13f7b8b8be..0dc48868dd8 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -28,9 +28,10 @@ SHELL = @SHELL@
28# Here are the things that we expect ../configure to edit. 28# Here are the things that we expect ../configure to edit.
29# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. 29# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
30srcdir = @srcdir@ 30srcdir = @srcdir@
31top_srcdir = @top_srcdir@
31# MinGW CPPFLAGS may use this. 32# MinGW CPPFLAGS may use this.
32abs_top_srcdir=@abs_top_srcdir@ 33abs_top_srcdir=@abs_top_srcdir@
33ntsource = $(srcdir)/../nt 34ntsource = $(top_srcdir)/nt
34VPATH = $(srcdir) 35VPATH = $(srcdir)
35CC = @CC@ 36CC = @CC@
36WINDRES = @WINDRES@ 37WINDRES = @WINDRES@
@@ -48,7 +49,7 @@ MKDIR_P = @MKDIR_P@
48# LIBS = @LIBS@ 49# LIBS = @LIBS@
49LIBOBJS = @LIBOBJS@ 50LIBOBJS = @LIBOBJS@
50 51
51lispsource = $(srcdir)/../lisp 52lispsource = $(top_srcdir)/lisp
52lib = ../lib 53lib = ../lib
53libsrc = ../lib-src 54libsrc = ../lib-src
54etc = ../etc 55etc = ../etc
@@ -319,7 +320,7 @@ MKDEPDIR=@MKDEPDIR@
319## 320##
320## FIXME? MYCPPFLAGS only referenced in etc/DEBUG. 321## FIXME? MYCPPFLAGS only referenced in etc/DEBUG.
321ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \ 322ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
322 -I$(lib) -I$(srcdir)/../lib \ 323 -I$(lib) -I$(top_srcdir)/lib \
323 $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ 324 $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
324 $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ 325 $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
325 $(PNG_CFLAGS) $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \ 326 $(PNG_CFLAGS) $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \
@@ -474,7 +475,7 @@ GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m)
474 475
475gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES) 476gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES)
476 $(libsrc)/make-docfile -d $(srcdir) -g $(obj) > gl.tmp 477 $(libsrc)/make-docfile -d $(srcdir) -g $(obj) > gl.tmp
477 $(srcdir)/../build-aux/move-if-change gl.tmp globals.h 478 $(top_srcdir)/build-aux/move-if-change gl.tmp globals.h
478 echo timestamp > $@ 479 echo timestamp > $@
479 480
480$(ALLOBJS): globals.h 481$(ALLOBJS): globals.h
@@ -505,17 +506,23 @@ $(oldXMenudir)/libXMenu11.a: FORCE
505FORCE: 506FORCE:
506.PHONY: FORCE 507.PHONY: FORCE
507 508
508../config.status: config.in epaths.in 509ACLOCAL_INPUTS = $(top_srcdir)/configure.ac $(wildcard $(top_srcdir)/m4/*.m4)
509 @echo "The file ${?:.in=.h} needs to be set up from $?." 510AUTOCONF_INPUTS = $(top_srcdir)/configure.ac $(top_srcdir)/aclocal.m4
510 @echo "Please run the 'configure' script again." 511$(top_srcdir)/aclocal.m4: $(ACLOCAL_INPUTS)
511 exit 1 512$(top_srcdir)/configure config.in: $(AUTOCONF_INPUTS)
513.PRECIOUS: ../config.status Makefile
514../config.status: $(top_srcdir)/configure $(top_srcdir)/lisp/version.el
515Makefile: ../config.status $(srcdir)/Makefile.in
516$(top_srcdir)/aclocal.m4 $(top_srcdir)/configure config.in ../config.status \
517 Makefile:
518 $(MAKE) -C .. am--refresh
512 519
513doc.o: buildobj.h 520doc.o: buildobj.h
514 521
515emacs.res: $(ntsource)/emacs.rc \ 522emacs.res: $(ntsource)/emacs.rc \
516 $(ntsource)/icons/emacs.ico \ 523 $(ntsource)/icons/emacs.ico \
517 $(ntsource)/$(EMACS_MANIFEST) 524 $(ntsource)/$(EMACS_MANIFEST)
518 $(WINDRES) -O COFF --include-dir=$(srcdir)/../nt \ 525 $(WINDRES) -O COFF --include-dir=$(top_srcdir)/nt \
519 -o $@ $(ntsource)/emacs.rc 526 -o $@ $(ntsource)/emacs.rc
520 527
521.PHONY: ns-app 528.PHONY: ns-app