From cfc5633322957261d45d7bbf07103bf7266b2714 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 9 Jan 2011 20:12:43 +0300 Subject: [PATCH] make: Add TAGS, tags targets and tune cscope Signed-off-by: Cyrill Gorcunov --- Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 906d5d9..67e37e3 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ endif export E Q PROGRAM = kvm +FIND = find +CSCOPE = cscope +TAGS = ctags OBJS += 8250-serial.o OBJS += blk-virtio.o @@ -122,9 +125,22 @@ $(KVM_DEV): devices: $(KVM_DEV) .PHONY: devices +TAGS: + $(E) " GEN" $@ + $(Q) $(RM) -f TAGS + $(Q) $(FIND) . -name '*.[hcS]' -print | xargs etags -a +.PHONY: TAGS + +tags: + $(E) " GEN" $@ + $(Q) $(RM) -f tags + $(Q) $(FIND) . -name '*.[hcS]' -print | xargs ctags -a +.PHONY: tags + cscope: $(E) " GEN" $@ - $(Q) cscope -Rqb + $(Q) $(FIND) . -name '*.[hcS]' -print > cscope.files + $(Q) $(CSCOPE) -bkqu .PHONY: cscope # Deps