summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.in
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-04-11 21:28:16 +0200
committerMartin Mares <mj@ucw.cz>1999-04-11 21:28:16 +0200
commited9a82369ffc660ec20d9b7fa64188a450267672 (patch)
tree2d862b5216cb2b6e33bea3aac03d4098d091c727 /tools/Makefile.in
parent2db3b2887ea93c9946956a9a5ce5a06f0ef783c3 (diff)
downloadbird-ed9a82369ffc660ec20d9b7fa64188a450267672.tar
bird-ed9a82369ffc660ec20d9b7fa64188a450267672.zip
Added new target "tags" to generate a tag table for Emacs.
Also made "depend" work before the tree is compiled first time.
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 9895b10..1f41e82 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -5,11 +5,11 @@ include Rules
srcdir_abs := $(shell cd $(srcdir) ; pwd)
-.PHONY: all subdir depend clean distclean
+.PHONY: all subdir depend clean distclean tags
-all: .dir-stamp .dep-stamp subdir $(exedir)/bird
+all: .dep-stamp subdir $(exedir)/bird
-subdir depend:
+subdir depend: .dir-stamp
set -e ; for a in $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done
set -e ; for a in $(static-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done
@@ -24,6 +24,9 @@ $(exedir)/bird: $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a
$(MAKE) depend
touch .dep-stamp
+tags:
+ cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) -name *.[chY]`
+
clean:
find . -name "*.[oa]" -or -name core -or -name depend | xargs rm -f
rm -f $(exedir)/bird .dep-stamp