*corrected* Add cscope target to Makefile
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 <[email protected]>
--- Makefile | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
Makefile +7 -0
@@ -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 $@" $< > $@
Signature · 1 line
1.4.3.rc2.g0503