diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 17 | ||||
| -rw-r--r-- | src/Makefile.in | 25 |
2 files changed, 33 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 47b0927bbb7..877898443ec 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2014-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 | |||
| 1 | 2014-07-12 Eli Zaretskii <eliz@gnu.org> | 18 | 2014-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. |
| 30 | srcdir = @srcdir@ | 30 | srcdir = @srcdir@ |
| 31 | top_srcdir = @top_srcdir@ | ||
| 31 | # MinGW CPPFLAGS may use this. | 32 | # MinGW CPPFLAGS may use this. |
| 32 | abs_top_srcdir=@abs_top_srcdir@ | 33 | abs_top_srcdir=@abs_top_srcdir@ |
| 33 | ntsource = $(srcdir)/../nt | 34 | ntsource = $(top_srcdir)/nt |
| 34 | VPATH = $(srcdir) | 35 | VPATH = $(srcdir) |
| 35 | CC = @CC@ | 36 | CC = @CC@ |
| 36 | WINDRES = @WINDRES@ | 37 | WINDRES = @WINDRES@ |
| @@ -48,7 +49,7 @@ MKDIR_P = @MKDIR_P@ | |||
| 48 | # LIBS = @LIBS@ | 49 | # LIBS = @LIBS@ |
| 49 | LIBOBJS = @LIBOBJS@ | 50 | LIBOBJS = @LIBOBJS@ |
| 50 | 51 | ||
| 51 | lispsource = $(srcdir)/../lisp | 52 | lispsource = $(top_srcdir)/lisp |
| 52 | lib = ../lib | 53 | lib = ../lib |
| 53 | libsrc = ../lib-src | 54 | libsrc = ../lib-src |
| 54 | etc = ../etc | 55 | etc = ../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. |
| 321 | ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \ | 322 | ALL_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 | ||
| 475 | gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES) | 476 | gl-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 | |||
| 505 | FORCE: | 506 | FORCE: |
| 506 | .PHONY: FORCE | 507 | .PHONY: FORCE |
| 507 | 508 | ||
| 508 | ../config.status: config.in epaths.in | 509 | ACLOCAL_INPUTS = $(top_srcdir)/configure.ac $(wildcard $(top_srcdir)/m4/*.m4) |
| 509 | @echo "The file ${?:.in=.h} needs to be set up from $?." | 510 | AUTOCONF_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 | ||
| 515 | Makefile: ../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 | ||
| 513 | doc.o: buildobj.h | 520 | doc.o: buildobj.h |
| 514 | 521 | ||
| 515 | emacs.res: $(ntsource)/emacs.rc \ | 522 | emacs.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 |