mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Added new target "tags" to generate a tag table for Emacs.
Also made "depend" work before the tree is compiled first time.
This commit is contained in:
parent
2db3b2887e
commit
ed9a82369f
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
objdir=@objdir@
|
objdir=@objdir@
|
||||||
|
|
||||||
all depend:
|
all depend tags:
|
||||||
$(MAKE) -C $(objdir) $@
|
$(MAKE) -C $(objdir) $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -5,11 +5,11 @@ include Rules
|
|||||||
|
|
||||||
srcdir_abs := $(shell cd $(srcdir) ; pwd)
|
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 $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done
|
||||||
set -e ; for a in $(static-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; 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
|
$(MAKE) depend
|
||||||
touch .dep-stamp
|
touch .dep-stamp
|
||||||
|
|
||||||
|
tags:
|
||||||
|
cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) -name *.[chY]`
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
find . -name "*.[oa]" -or -name core -or -name depend | xargs rm -f
|
find . -name "*.[oa]" -or -name core -or -name depend | xargs rm -f
|
||||||
rm -f $(exedir)/bird .dep-stamp
|
rm -f $(exedir)/bird .dep-stamp
|
||||||
|
Loading…
Reference in New Issue
Block a user