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

[tyndur-devel] [PATCH v2] Makefile: cscope-Target



+ make cscope generiert eine cscope-Datenbank für alle C-Dateien im
  ganzen Verzeichnisbaum

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 Makefile   |    5 +++++
 buildmk.sh |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 844814c..1ad911c 100644
--- a/Makefile
+++ b/Makefile
@@ -81,6 +81,11 @@ test-qemu-cdrom: image-cdrom
 test-bochs: image-floppy
 	bochs -f bochs.config
 
+cscope:
+	rm -f cscope.*
+	find `pwd`/src -name '*.[ch]' > cscope.files
+	cscope -bk
+
 menuconfig:
 	python config.py
 
diff --git a/buildmk.sh b/buildmk.sh
index 800ac2a..6992081 100644
--- a/buildmk.sh
+++ b/buildmk.sh
@@ -301,6 +301,11 @@ test-qemu-cdrom: image-cdrom
 test-bochs: image-floppy
 	bochs -f bochs.config
 
+cscope:
+	rm -f cscope.*
+	find \`pwd\`/src -name '*.[ch]' > cscope.files
+	cscope -bk
+
 menuconfig:
 	python config.py
 
-- 
1.6.0.2