]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid having to build src/emacs when we just want to `make tags`
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 23 Jan 2019 21:02:11 +0000 (16:02 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 23 Jan 2019 21:02:11 +0000 (16:02 -0500)
* Makefile.in (TAGS tags): Remove `src` from the dependencies.
* src/Makefile.in (ctagsfiles1): Strip macuvs.h and fingerprint.c.

Makefile.in
src/Makefile.in

index b6cd04d1f3d951f4744c577aac2aec0aaf2683d1..53703638c4262c6832acc6519dc3de12311a17a7 100644 (file)
@@ -944,7 +944,9 @@ extraclean: $(extraclean_dirs:=_extraclean)
 # The src subdir knows how to do the right thing
 # even when the build directory and source dir are different.
 .PHONY: TAGS tags
-TAGS tags: lib lib-src src
+# FIXME: We used to include `src` in the dependencies, not sure why.
+# I removed it because it causes `make tags` to build Emacs.
+TAGS tags: lib lib-src # src
        $(MAKE) -C src tags
 
 .PHONY: have-tests
index 7eb58732672ad951519b8bb413960edf1eb09d63..5890eac8c6367164df04c8a2ff352d1e1863baee 100644 (file)
@@ -720,7 +720,10 @@ ETAGS = ../lib-src/etags${EXEEXT}
 ${ETAGS}: FORCE
        ${MAKE} -C ../lib-src $(notdir $@)
 
-ctagsfiles1 = $(wildcard ${srcdir}/*.[hc])
+# Remove macuvs.h and fingerprint.c since they'd cause `src/emacs`
+# to be built before we can get TAGS.
+ctagsfiles1 = $(filter-out ${srcdir}/macuvs.h ${srcdir}/fingerprint.c, \
+                           $(wildcard ${srcdir}/*.[hc]))
 ctagsfiles2 = $(wildcard ${srcdir}/*.m)
 
 ## In out-of-tree builds, TAGS are generated in the build dir, like