mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 13:11:44 +00:00
make: Add TAGS, tags targets and tune cscope
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
committed by
Will Deacon
parent
352d3a66db
commit
cfc5633322
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user