diff options
| author | Glenn Morris | 2013-11-02 12:41:33 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-11-02 12:41:33 -0700 |
| commit | c617f3d0b10f5a271c2d5d93d2a9422d9d7e8fb1 (patch) | |
| tree | 6a2822ea9620c91e347b605ec48436b67ef4d0a9 | |
| parent | 739f57cd1f17b92760c2631c7eec003e3a756415 (diff) | |
| download | emacs-c617f3d0b10f5a271c2d5d93d2a9422d9d7e8fb1.tar.gz emacs-c617f3d0b10f5a271c2d5d93d2a9422d9d7e8fb1.zip | |
Use relative filenames in TAGS files.
* src/Makefile.in (abs_srcdir): Remove it again.
(.PHONY): Remove frc.
(maintainer-clean): No more TAGS-LISP file.
(TAGS): Pass relative file names to etags.
(../lisp/TAGS): Rename from TAGS-LISP. Work in ../lisp.
* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4, TAGS): Use relative file names.
(TAGS-LISP): Remove.
(maintainer-clean): No more TAGS-LISP file.
* lwlib/Makefile.in (abs_srcdir): Remove it again.
(ctagsfiles, TAGS): Use relative filenames.
* .bzrignore: Remove TAGS-LISP.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/Makefile.in | 24 | ||||
| -rw-r--r-- | lwlib/ChangeLog | 4 | ||||
| -rw-r--r-- | lwlib/Makefile.in | 9 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/Makefile.in | 24 |
6 files changed, 43 insertions, 31 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8bdf2d3a83e..4d794052fd7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> | 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | Use relative filenames in TAGS files. | ||
| 4 | * Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3) | ||
| 5 | (lisptagsfiles4, TAGS): Use relative file names. | ||
| 6 | (TAGS-LISP): Remove. | ||
| 7 | (maintainer-clean): No more TAGS-LISP file. | ||
| 8 | |||
| 3 | * Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3) | 9 | * Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3) |
| 4 | (lisptagsfiles4): Use absolute filenames again. | 10 | (lisptagsfiles4): Use absolute filenames again. |
| 5 | (TAGS, TAGS-LISP): Not everything needs to run in one line. | 11 | (TAGS, TAGS-LISP): Not everything needs to run in one line. |
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index be7a413b15b..1142165e9f3 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -214,25 +214,25 @@ update-authors: | |||
| 214 | 214 | ||
| 215 | ETAGS = ../lib-src/etags | 215 | ETAGS = ../lib-src/etags |
| 216 | 216 | ||
| 217 | ## NB We use absolute filenames because ../src/Makefile calls this via | 217 | lisptagsfiles1 = $(srcdir)/*.el |
| 218 | ## make -f ../lisp/Makefile. | 218 | lisptagsfiles2 = $(srcdir)/*/*.el |
| 219 | ## FIXME? Can etags work ok with relative filenames? | 219 | lisptagsfiles3 = $(srcdir)/*/*/*.el |
| 220 | lisptagsfiles1 = $(abs_srcdir)/*.el | 220 | lisptagsfiles4 = $(srcdir)/*/*/*/*.el |
| 221 | lisptagsfiles2 = $(abs_srcdir)/*/*.el | ||
| 222 | lisptagsfiles3 = $(abs_srcdir)/*/*/*.el | ||
| 223 | lisptagsfiles4 = $(abs_srcdir)/*/*/*/*.el | ||
| 224 | 221 | ||
| 225 | ## Apparently the echo | sed | xargs is to stop the command line | 222 | ## Apparently the echo | sed | xargs is to stop the command line |
| 226 | ## getting too long on MS Windows. It will make no difference on | 223 | ## getting too long on MS Windows. It will make no difference on |
| 227 | ## POSIX systems, where the shell does the globbing right away, before | 224 | ## POSIX systems, where the shell does the globbing right away, before |
| 228 | ## passing the expanded arguments to echo. | 225 | ## passing the expanded arguments to echo. |
| 229 | TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | 226 | ## The POSIX way would be to use find in a similar way to compile-main. |
| 227 | ## But maybe this is not even necessary any more now that this uses | ||
| 228 | ## relative filenames. | ||
| 229 | TAGS: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | ||
| 230 | rm -f $@ | 230 | rm -f $@ |
| 231 | touch $@ | 231 | touch $@ |
| 232 | echo $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | \ | 232 | echo $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | \ |
| 233 | sed -e 's,$(abs_srcdir)/[^ ]*loaddefs[^ ]*,,g' \ | 233 | sed -e 's,$(srcdir)/[^ ]*loaddefs[^ ]*,,g' \ |
| 234 | -e 's,$(abs_srcdir)/ldefs-boot[^ ]*,,' \ | 234 | -e 's,$(srcdir)/ldefs-boot[^ ]*,,' \ |
| 235 | -e 's,$(abs_srcdir)/[^ ]*esh-groups.el[^ ]*,,' | \ | 235 | -e 's,$(srcdir)/[^ ]*esh-groups.el[^ ]*,,' | \ |
| 236 | xargs $(XARGS_LIMIT) "$(ETAGS)" -a -o $@ | 236 | xargs $(XARGS_LIMIT) "$(ETAGS)" -a -o $@ |
| 237 | 237 | ||
| 238 | 238 | ||
| @@ -458,7 +458,7 @@ distclean: | |||
| 458 | -rm -f ./Makefile $(lisp)/loaddefs.el~ | 458 | -rm -f ./Makefile $(lisp)/loaddefs.el~ |
| 459 | 459 | ||
| 460 | maintainer-clean: distclean bootstrap-clean | 460 | maintainer-clean: distclean bootstrap-clean |
| 461 | rm -f TAGS TAGS-LISP | 461 | rm -f TAGS |
| 462 | 462 | ||
| 463 | .PHONY: check-declare | 463 | .PHONY: check-declare |
| 464 | 464 | ||
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 6d10fe551cb..dadb13514e0 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> | 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | Use relative filenames in TAGS files. | ||
| 4 | * Makefile.in (abs_srcdir): Remove it again. | ||
| 5 | (ctagsfiles, TAGS): Use relative filenames. | ||
| 6 | |||
| 3 | * Makefile.in (abs_srcdir): New, set by configure. | 7 | * Makefile.in (abs_srcdir): New, set by configure. |
| 4 | (ETAGS, ctagsfiles): New variables. | 8 | (ETAGS, ctagsfiles): New variables. |
| 5 | (TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again. | 9 | (TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again. |
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in index 550983c1757..8bb23bb11bd 100644 --- a/lwlib/Makefile.in +++ b/lwlib/Makefile.in | |||
| @@ -23,7 +23,6 @@ | |||
| 23 | # and set up to be configured by ../configure. | 23 | # and set up to be configured by ../configure. |
| 24 | 24 | ||
| 25 | srcdir=@srcdir@ | 25 | srcdir=@srcdir@ |
| 26 | abs_srcdir=@abs_srcdir@ | ||
| 27 | # MinGW CPPFLAGS may use this. | 26 | # MinGW CPPFLAGS may use this. |
| 28 | abs_top_srcdir=@abs_top_srcdir@ | 27 | abs_top_srcdir=@abs_top_srcdir@ |
| 29 | VPATH=@srcdir@ | 28 | VPATH=@srcdir@ |
| @@ -104,12 +103,10 @@ maintainer-clean: distclean | |||
| 104 | 103 | ||
| 105 | ETAGS = ../lib-src/etags | 104 | ETAGS = ../lib-src/etags |
| 106 | 105 | ||
| 107 | ## FIXME? Does etags need to use absolute filenames? | 106 | ctagsfiles= $(srcdir)/*.[ch] |
| 108 | ## See comments in lisp/Makefile.in, src/Makefile.in. | ||
| 109 | ctagsfiles= *.[ch] | ||
| 110 | 107 | ||
| 111 | TAGS: $(srcdir)/$(ctagsfiles) | 108 | TAGS: $(ctagsfiles) |
| 112 | "$(ETAGS)" "$(abs_srcdir)"/$(ctagsfiles) | 109 | "$(ETAGS)" $(ctagsfiles) |
| 113 | tags: TAGS | 110 | tags: TAGS |
| 114 | .PHONY: tags | 111 | .PHONY: tags |
| 115 | 112 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index d0193f355a2..997d98344c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> | 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | Use relative filenames in TAGS files. | ||
| 4 | * Makefile.in (abs_srcdir): Remove it again. | ||
| 5 | (.PHONY): Remove frc. | ||
| 6 | (maintainer-clean): No more TAGS-LISP file. | ||
| 7 | (TAGS): Pass relative file names to etags. | ||
| 8 | (../lisp/TAGS): Rename from TAGS-LISP. Work in ../lisp. | ||
| 9 | |||
| 3 | * Makefile.in (abs_srcdir): New, set by configure. | 10 | * Makefile.in (abs_srcdir): New, set by configure. |
| 4 | (lispdir): Remove. | 11 | (lispdir): Remove. |
| 5 | (maintainer-clean): Remove pointless echo. That should be in the | 12 | (maintainer-clean): Remove pointless echo. That should be in the |
diff --git a/src/Makefile.in b/src/Makefile.in index e3f4fb60a40..41e0c7d382a 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ### @configure_input@ | 1 | ### @configure_input@ |
| 2 | 2 | ||
| 3 | # Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2013 Free Software | 3 | # Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2013 |
| 4 | # Foundation, Inc. | 4 | # Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | # This file is part of GNU Emacs. | 6 | # This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -28,7 +28,6 @@ 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 | abs_srcdir = @abs_srcdir@ | ||
| 32 | # MinGW CPPFLAGS may use this. | 31 | # MinGW CPPFLAGS may use this. |
| 33 | abs_top_srcdir=@abs_top_srcdir@ | 32 | abs_top_srcdir=@abs_top_srcdir@ |
| 34 | ntsource = $(srcdir)/../nt | 33 | ntsource = $(srcdir)/../nt |
| @@ -557,7 +556,7 @@ ns-app: emacs$(EXEEXT) | |||
| 557 | cd ../nextstep && $(MAKE) $(MFLAGS) all | 556 | cd ../nextstep && $(MAKE) $(MFLAGS) all |
| 558 | 557 | ||
| 559 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean | 558 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean |
| 560 | .PHONY: versionclean extraclean frc | 559 | .PHONY: versionclean extraclean |
| 561 | 560 | ||
| 562 | mostlyclean: | 561 | mostlyclean: |
| 563 | rm -f temacs$(EXEEXT) core *.core \#* *.o libXMenu11.a liblw.a | 562 | rm -f temacs$(EXEEXT) core *.core \#* *.o libXMenu11.a liblw.a |
| @@ -585,7 +584,7 @@ distclean: bootstrap-clean | |||
| 585 | rm -f Makefile | 584 | rm -f Makefile |
| 586 | 585 | ||
| 587 | maintainer-clean: distclean | 586 | maintainer-clean: distclean |
| 588 | rm -f TAGS TAGS-LISP | 587 | rm -f TAGS |
| 589 | versionclean: | 588 | versionclean: |
| 590 | -rm -f emacs$(EXEEXT) emacs-*.*.*$(EXEEXT) ../etc/DOC* | 589 | -rm -f emacs$(EXEEXT) emacs-*.*.*$(EXEEXT) ../etc/DOC* |
| 591 | extraclean: distclean | 590 | extraclean: distclean |
| @@ -598,28 +597,27 @@ ctagsfiles1 = [xyzXYZ]*.[hc] | |||
| 598 | ctagsfiles2 = [a-wA-W]*.[hc] | 597 | ctagsfiles2 = [a-wA-W]*.[hc] |
| 599 | ctagsfiles3 = [a-zA-Z]*.m | 598 | ctagsfiles3 = [a-zA-Z]*.m |
| 600 | 599 | ||
| 601 | ## FIXME? Do we really need to use absolute filenames here? | 600 | ## FIXME? In out-of-tree builds, should TAGS be generated in srcdir? |
| 602 | 601 | ||
| 603 | ## This does not need to depend on ../lisp and ../lwlib TAGS files, | 602 | ## This does not need to depend on ../lisp and ../lwlib TAGS files, |
| 604 | ## because etags "--include" only includes a pointer to the file, | 603 | ## because etags "--include" only includes a pointer to the file, |
| 605 | ## rather than the file contents. | 604 | ## rather than the file contents. |
| 606 | TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) $(srcdir)/$(ctagsfiles3) | 605 | TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) $(srcdir)/$(ctagsfiles3) |
| 607 | "$(ETAGS)" --include=TAGS-LISP --include=$(lwlibdir)/TAGS \ | 606 | "$(ETAGS)" --include=../lisp/TAGS --include=$(lwlibdir)/TAGS \ |
| 608 | --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ | 607 | --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ |
| 609 | "$(abs_srcdir)"/$(ctagsfiles1) "$(abs_srcdir)"/$(ctagsfiles2) \ | 608 | $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) \ |
| 610 | --regex='{objc}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ | 609 | --regex='{objc}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ |
| 611 | "$(abs_srcdir)"/$(ctagsfiles3) | 610 | $(srcdir)/$(ctagsfiles3) |
| 612 | 611 | ||
| 613 | ## Arrange to make tags tables for ../lisp and ../lwlib, | 612 | ## Arrange to make tags tables for ../lisp and ../lwlib, |
| 614 | ## which the above TAGS file for the C files includes by reference. | 613 | ## which the above TAGS file for the C files includes by reference. |
| 615 | frc: | 614 | ../lisp/TAGS: |
| 616 | TAGS-LISP: frc | 615 | cd ../lisp && $(MAKE) TAGS ETAGS="$(ETAGS)" |
| 617 | $(MAKE) -f ../lisp/Makefile TAGS-LISP ETAGS="$(ETAGS)" | ||
| 618 | 616 | ||
| 619 | $(lwlibdir)/TAGS: | 617 | $(lwlibdir)/TAGS: |
| 620 | cd $(lwlibdir) && $(MAKE) TAGS ETAGS="$(ETAGS)" | 618 | cd $(lwlibdir) && $(MAKE) TAGS ETAGS="$(ETAGS)" |
| 621 | 619 | ||
| 622 | tags: TAGS TAGS-LISP $(lwlibdir)/TAGS | 620 | tags: TAGS ../lisp/TAGS $(lwlibdir)/TAGS |
| 623 | .PHONY: tags | 621 | .PHONY: tags |
| 624 | 622 | ||
| 625 | 623 | ||