]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
Makefile: introduce gtags target
authorWei Liu <wei.liu2@citrix.com>
Mon, 26 Sep 2016 15:07:33 +0000 (16:07 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 27 Sep 2016 16:51:02 +0000 (17:51 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
.gitignore
Makefile

index f69e7fc05410110e8bbac0ecd0bac2c2558c6848..28c78748e46134be6fcd01b0a1c3bc90f4e69575 100644 (file)
@@ -11,3 +11,6 @@
 /selftests/test-*
 /tests/*/test-*
 /tests/*/info.json
+/GPATH
+/GRTAGS
+/GTAGS
index 17d784ec73604cb8cf8cd1591fbbe0fca09c8693..8f63bab7155fa84ab620c7546a673879c411193b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,11 +50,19 @@ install:
                $(MAKE) -C $$D install; \
        done
 
+define all_sources
+       find include/ arch/ common/ tests/ -name "*.[hcsS]"
+endef
+
 .PHONY: cscope
 cscope:
-       find include/ arch/ common/ tests/ -name "*.[hcsS]" > cscope.files
+       $(all_sources) > cscope.files
        cscope -b -q -k
 
+.PHONY: gtags
+gtags:
+       $(all_sources) | gtags -f -
+
 .PHONY: clean
 clean:
        find . \( -name "*.o" -o -name "*.d" -o -name "*.lds" \) -delete