linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [LIBFDT] *corrected* Add cscope target to Makefile
@ 2006-12-04  4:59 Grant Likely
  0 siblings, 0 replies; only message in thread
From: Grant Likely @ 2006-12-04  4:59 UTC (permalink / raw)
  To: David Gibson, linuxppc-dev

Oops!  Ignore the last patch that added cscope support; it would delete
the cscope.out file every time you did a make clean (kind of useless).
This version only removes the cscope.out when 'make distclean' is run

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
---
 Makefile |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index d464a82..2bbdb54 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 $<
@@ -76,6 +79,10 @@ clean:
 	rm -f *~ *.o *.so *.a *.d *.i *.s core a.out $(VERSION)
 	$(MAKE) -C tests clean
 
+distclean: clean
+	@$(VECHO) DISTCLEAN
+	rm -f cscope.out
+
 %.d: %.c
 	@$(CC) $(CPPFLAGS) -MM -MT "$*.o $@" $< > $@
 
-- 
1.4.3.rc2.g0503

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-04  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-04  4:59 [LIBFDT] *corrected* Add cscope target to Makefile Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).