emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master dbc48d7: Avoid having to build src/emacs when we ju


From: Stefan Monnier
Subject: [Emacs-diffs] master dbc48d7: Avoid having to build src/emacs when we just want to `make tags`
Date: Wed, 23 Jan 2019 16:02:17 -0500 (EST)

branch: master
commit dbc48d758ac90748df4befc677b2d21c5cd06d3b
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    Avoid having to build src/emacs when we just want to `make tags`
    
    * Makefile.in (TAGS tags): Remove `src` from the dependencies.
    * src/Makefile.in (ctagsfiles1): Strip macuvs.h and fingerprint.c.
---
 Makefile.in     | 4 +++-
 src/Makefile.in | 5 ++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index b6cd04d..5370363 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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
diff --git a/src/Makefile.in b/src/Makefile.in
index 7eb5873..5890eac 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]