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 /src | |
| 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/Makefile.in | 24 |
2 files changed, 18 insertions, 13 deletions
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 | ||