From: Grant Likely <grant.likely@secretlab.ca>
To: David Gibson <david@gibson.dropbear.id.au>, linuxppc-dev@ozlabs.org
Subject: [LIBFDT] *corrected* Add cscope target to Makefile
Date: Sun, 3 Dec 2006 21:59:59 -0700 [thread overview]
Message-ID: <11652083992145-git-send-email-grant.likely@secretlab.ca> (raw)
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
reply other threads:[~2006-12-04 5:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11652083992145-git-send-email-grant.likely@secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).