[LIBFDT] Add cscope target to Makefile

Grant Likely grant.likely at secretlab.ca
Mon Dec 4 15:53:41 EST 2006


---
 Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index d464a82..0c3b143 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,9 @@ stress:	all
 stressv: all
 	cd tests; ./run_tests.sh -t stress -v
 
+cscope:
+	cscope -b -k *.[ch] tests/*.[ch]
+
 %.o: %.c
 	@$(VECHO) CC $@
 	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
@@ -73,7 +76,7 @@ libfdt.a: $(LIBOBJS)
 
 clean:
 	@$(VECHO) CLEAN
-	rm -f *~ *.o *.so *.a *.d *.i *.s core a.out $(VERSION)
+	rm -f *~ *.o *.so *.a *.d *.i *.s core a.out cscope.out $(VERSION)
 	$(MAKE) -C tests clean
 
 %.d: %.c
-- 
1.4.3.rc2.g0503




More information about the Linuxppc-dev mailing list