From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: [PATCH v5 05/19] add 'make cscope' support Date: Wed, 11 Jun 2014 16:01:20 +0200 Message-ID: <1402495294-30737-6-git-send-email-drjones@redhat.com> References: <1402495294-30737-1-git-send-email-drjones@redhat.com> Cc: christoffer.dall@linaro.org, pbonzini@redhat.com To: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:42849 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755556AbaFKOBr (ORCPT ); Wed, 11 Jun 2014 10:01:47 -0400 In-Reply-To: <1402495294-30737-1-git-send-email-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Add a Makefile target to quickly generate arch-specific cscope for kvm-unit-tests. Assumes a mostly flat directory structure, i.e. uses '-maxdepth 1' in the file search. Signed-off-by: Andrew Jones Acked-by: Christoffer Dall --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7eeece84300df..32ae9a59db5b0 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ include config.mak DESTDIR := $(PREFIX)/share/qemu/tests -.PHONY: arch_clean clean distclean +.PHONY: arch_clean clean distclean cscope #make sure env CFLAGS variable is not used CFLAGS = @@ -59,4 +59,11 @@ clean: arch_clean $(RM) lib/.*.d $(libcflat) $(cflatobjs) distclean: clean - $(RM) config.mak $(TEST_DIR)-run test.log msr.out + $(RM) config.mak $(TEST_DIR)-run test.log msr.out cscope.* + +cscope: common_dirs = lib +cscope: + $(RM) ./cscope.* + find $(TEST_DIR) lib/$(TEST_DIR) $(common_dirs) -maxdepth 1 \ + -name '*.[chsS]' -print | sed 's,^\./,,' > ./cscope.files + cscope -bk -- 1.9.3