qemu-devel
[Top][All Lists]
Advanced

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

[PATCH 1/2] Makefile: Add back TAGS/ctags/cscope rules


From: Greg Kurz
Subject: [PATCH 1/2] Makefile: Add back TAGS/ctags/cscope rules
Date: Tue, 01 Sep 2020 16:20:10 +0200
User-agent: StGit/0.21

It is a bit of a pain to be forced to run configure before being able
to use cscope and friends. Add back the rules to build them in-tree
as before commit a56650518f5b.

Fixes: a56650518f5b ("configure: integrate Meson in the build system")
Signed-off-by: Greg Kurz <groug@kaod.org>
---
 Makefile |   17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 81794d5c34a2..8ffe2872915d 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ ninja-distclean::
 build.ninja: config-host.mak
 
 Makefile.ninja: build.ninja ninjatool
-       ./ninjatool -t ninja2make --omit clean dist uninstall < $< > $@
+       ./ninjatool -t ninja2make --omit clean dist uninstall cscope TAGS ctags 
< $< > $@
 -include Makefile.ninja
 
 ${ninja-targets-c_COMPILER} ${ninja-targets-cpp_COMPILER}: .var.command += -MP
@@ -229,6 +229,21 @@ distclean: clean ninja-distclean
        rm -f linux-headers/asm
        rm -Rf .sdk
 
+.PHONY: ctags
+ctags:
+       rm -f tags
+       find "$(SRC_PATH)" -name '*.[hc]' -exec ctags --append {} +
+
+.PHONY: TAGS
+TAGS:
+       rm -f TAGS
+       find "$(SRC_PATH)" -name '*.[hc]' -exec etags --append {} +
+
+cscope:
+       rm -f "$(SRC_PATH)"/cscope.*
+       find "$(SRC_PATH)/" -name "*.[chsS]" -print | sed -e 's,^\./,,' > 
"$(SRC_PATH)/cscope.files"
+       cscope -b -i"$(SRC_PATH)/cscope.files"
+
 ifdef INSTALL_BLOBS
 BLOBS=bios.bin bios-256k.bin bios-microvm.bin sgabios.bin vgabios.bin 
vgabios-cirrus.bin \
 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin vgabios-virtio.bin \





reply via email to

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