]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added new target "tags" to generate a tag table for Emacs.
authorMartin Mares <mj@ucw.cz>
Sun, 11 Apr 1999 19:28:16 +0000 (19:28 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 11 Apr 1999 19:28:16 +0000 (19:28 +0000)
Also made "depend" work before the tree is compiled first time.

tools/Makefile-top.in
tools/Makefile.in

index 13dc606db296588da13e0cfa7cbf787d29cffbb4..cf57a6a6c517ca5a4a1fc4148cf9973f270d5e9b 100644 (file)
@@ -3,7 +3,7 @@
 
 objdir=@objdir@
 
-all depend:
+all depend tags:
        $(MAKE) -C $(objdir) $@
 
 clean:
index 9895b10c1e388c2db08a4216dcc5e3c1cff9ee52..1f41e829a78c587f21b982c5c1f30b5c2829b443 100644 (file)
@@ -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