Skip to contentSkip to conversation

build-sys: delete TAGS in distclean only

PATCH In review [email protected] 2 participants 2 messages May 17, 2016 – May 19, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build-sys: delete TAGS in distclean only

From: Marc-André Lureau <[email protected]>

automake and other GNU build-sys generally keep TAGS file in make 'clean' rule and delete it only in 'distclean' (and 'mrproper' for linux). Do the same for qemu.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index 651bb89..fd63e1b 100644
@@ -347,7 +347,7 @@ clean:
 	rm -f qemu-options.def
 	rm -f *.msi
 	find . \( -name '*.l[oa]' -o -name '*.so' -o -name '*.dll' -o -name '*.mo' -o -name '*.[oda]' \) -type f -exec rm {} +
-	rm -f $(filter-out %.tlb,$(TOOLS)) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod *~ */*~
+	rm -f $(filter-out %.tlb,$(TOOLS)) $(HELPERS-y) qemu-ga cscope.* *.pod *~ */*~
 	rm -f fsdev/*.pod
 	rm -rf .libs */.libs
 	rm -f qemu-img-cmds.h
@@ -380,7 +380,7 @@ distclean: clean
 	rm -f qemu-doc.fn qemu-doc.fns qemu-doc.info qemu-doc.ky qemu-doc.kys
 	rm -f qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp
 	rm -f qemu-doc.vr
-	rm -f config.log
+	rm -f config.log TAGS
 	rm -f linux-headers/asm
 	rm -f qemu-tech.info qemu-tech.aux qemu-tech.cp qemu-tech.dvi qemu-tech.fn qemu-tech.info qemu-tech.ky qemu-tech.log qemu-tech.pdf qemu-tech.pg qemu-tech.toc qemu-tech.tp qemu-tech.vr
 	for d in $(TARGET_DIRS); do \
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · [email protected] writes:

From: Marc-André Lureau <[email protected]>

automake and other GNU build-sys generally keep TAGS file in make 'clean' rule and delete it only in 'distclean' (and 'mrproper' for linux). Do the same for qemu.

Cc'ing Paolo because I understand he already has some build system patches queued. If he doesn't want to take this one along, then try qemu-trivial.