diff options
| author | Glenn Morris | 2016-01-06 18:25:47 -0500 |
|---|---|---|
| committer | Glenn Morris | 2016-01-06 18:25:47 -0500 |
| commit | c6d3c60f283a9c2071b4db185773a00e53e20a61 (patch) | |
| tree | 07222d80f5c1a4fd24cd9ea07e9911ff4bf009e6 /oldXMenu | |
| parent | efa8087d4b681a6bf673ec6f2d8220bf98705e72 (diff) | |
| download | emacs-c6d3c60f283a9c2071b4db185773a00e53e20a61.tar.gz emacs-c6d3c60f283a9c2071b4db185773a00e53e20a61.zip | |
Build tweaks related to tags files.
* lib-src/Makefile.in (tagsfiles): New variable.
(TAGS): Also depend on the source files. Use our own etags program.
* lisp/Makefile.in (ETAGS): Add EXEEXT.
(lisptagsfiles1, lisptagsfiles2, lisptagsfiles3, lisptagsfiles4):
Remove.
(tagsfiles): New, replacing lisptagsfiles1 etc.
Remove irrelevant source files here rather than in the TAGS rule.
(${ETAGS}): New rule.
(TAGS): Also depend on the etags executable.
* lwlib/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): Add EXEEXT.
(${ETAGS}): New rule.
(ctagsfiles): Use "wildcard".
(TAGS): Also depend on the etags executable.
* nt/Makefile.in (ETAGS, tagsfiles): New variables.
(${ETAGS}): New rule.
(TAGS): Fix dependencies.
* oldXMenu/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): New variable, replacing $TAGS. Use our own etags program.
Remove "-t" argument.
(${ETAGS}): New rule.
(tagsfiles): New variable.
(TAGS): New rule, with proper dependencies.
* src/Makefile.in (ETAGS): Add EXEEXT. Add a build rule.
(ctagsfiles1, ctagsfiles2): Use "wildcard".
(ctagsfiles3): Remove.
(TAGS): Depend on etags.
(../lisp/TAGS, $(lwlibdir)/TAGS): Let the rules in the relevant
directories decide if updates are needed.
Diffstat (limited to 'oldXMenu')
| -rw-r--r-- | oldXMenu/Makefile.in | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/oldXMenu/Makefile.in b/oldXMenu/Makefile.in index de5b8e1114c..71dd5663f43 100644 --- a/oldXMenu/Makefile.in +++ b/oldXMenu/Makefile.in | |||
| @@ -58,12 +58,12 @@ CC=@CC@ | |||
| 58 | CFLAGS=@CFLAGS@ | 58 | CFLAGS=@CFLAGS@ |
| 59 | CPPFLAGS = @CPPFLAGS@ | 59 | CPPFLAGS = @CPPFLAGS@ |
| 60 | 60 | ||
| 61 | TAGS = etags | ||
| 62 | RM = rm -f | 61 | RM = rm -f |
| 63 | RANLIB = @RANLIB@ | 62 | RANLIB = @RANLIB@ |
| 64 | AR = @AR@ | 63 | AR = @AR@ |
| 65 | ARFLAGS = @ARFLAGS@ | 64 | ARFLAGS = @ARFLAGS@ |
| 66 | MKDIR_P = @MKDIR_P@ | 65 | MKDIR_P = @MKDIR_P@ |
| 66 | EXEEXT = @EXEEXT@ | ||
| 67 | 67 | ||
| 68 | OBJS = Activate.o \ | 68 | OBJS = Activate.o \ |
| 69 | AddPane.o \ | 69 | AddPane.o \ |
| @@ -152,8 +152,17 @@ clean mostlyclean: | |||
| 152 | bootstrap-clean maintainer-clean distclean: clean | 152 | bootstrap-clean maintainer-clean distclean: clean |
| 153 | rm -f Makefile | 153 | rm -f Makefile |
| 154 | 154 | ||
| 155 | .PHONY: tags | 155 | ETAGS = ../lib-src/etags${EXEEXT} |
| 156 | tags: | 156 | |
| 157 | $(TAGS) -t *.[ch] | 157 | ${ETAGS}: FORCE |
| 158 | ${MAKE} -C ../lib-src $(notdir $@) | ||
| 159 | |||
| 160 | tagsfiles = $(wildcard ${srcdir}/*.[ch]) | ||
| 161 | |||
| 162 | FORCE: | ||
| 163 | .PHONY: tags FORCE | ||
| 164 | tags: TAGS | ||
| 165 | TAGS: ${ETAGS} ${tagsfiles} | ||
| 166 | ${ETAGS} ${tagsfiles} | ||
| 158 | 167 | ||
| 159 | ### Makefile.in ends here | 168 | ### Makefile.in ends here |