summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-04-08 13:23:26 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-04-08 13:23:26 -0700
commit14cc08de23e28ee3cbc5cb471daeea6f10f0ac90 (patch)
tree045c9449aff938dd9052fb3b086662737774547f
parentMerge branch 'rs/daemon-sanitize-dir-sep' (diff)
parentMakefile: add QUIET_GEN to "tags" and "TAGS" targets (diff)
downloadtgif-14cc08de23e28ee3cbc5cb471daeea6f10f0ac90.tar.xz
Merge branch 'ab/make-tags-quiet'
Generate [ec]tags under $(QUIET_GEN). * ab/make-tags-quiet: Makefile: add QUIET_GEN to "tags" and "TAGS" targets
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a6a73c5741..ffc2ddfd93 100644
--- a/Makefile
+++ b/Makefile
@@ -2699,12 +2699,14 @@ FIND_SOURCE_FILES = ( \
)
$(ETAGS_TARGET): FORCE
- $(RM) $(ETAGS_TARGET)
- $(FIND_SOURCE_FILES) | xargs etags -a -o $(ETAGS_TARGET)
+ $(QUIET_GEN)$(RM) "$(ETAGS_TARGET)+" && \
+ $(FIND_SOURCE_FILES) | xargs etags -a -o "$(ETAGS_TARGET)+" && \
+ mv "$(ETAGS_TARGET)+" "$(ETAGS_TARGET)"
tags: FORCE
- $(RM) tags
- $(FIND_SOURCE_FILES) | xargs ctags -a
+ $(QUIET_GEN)$(RM) tags+ && \
+ $(FIND_SOURCE_FILES) | xargs ctags -a -o tags+ && \
+ mv tags+ tags
cscope:
$(RM) cscope*