diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile-top.in | 4 | ||||
-rw-r--r-- | tools/Makefile.in | 13 | ||||
-rw-r--r-- | tools/Rules.in | 7 |
3 files changed, 15 insertions, 9 deletions
diff --git a/tools/Makefile-top.in b/tools/Makefile-top.in index 0dee0dc..415bc87 100644 --- a/tools/Makefile-top.in +++ b/tools/Makefile-top.in @@ -1,9 +1,9 @@ # Makefile for in place build of BIRD -# (c) 1999 Martin Mares <mj@ucw.cz> +# (c) 1999--2000 Martin Mares <mj@ucw.cz> objdir=@objdir@ -all depend tags: +all depend tags docs userdocs progdocs: $(MAKE) -C $(objdir) $@ clean: diff --git a/tools/Makefile.in b/tools/Makefile.in index 1dcb9bc..5eb7183 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -3,9 +3,7 @@ include Rules -srcdir_abs := $(shell cd $(srcdir) ; pwd) - -.PHONY: all daemon client subdir depend clean distclean tags +.PHONY: all daemon client subdir depend clean distclean tags docs userdocs progdocs all: .dep-stamp subdir daemon @CLIENT@ @@ -24,18 +22,23 @@ $(exedir)/birdc: client/all.o lib/birdlib.a $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS) .dir-stamp: - mkdir -p $(static-dirs) $(client-dirs) + mkdir -p $(static-dirs) $(client-dirs) $(doc-dirs) touch .dir-stamp .dep-stamp: $(MAKE) depend touch .dep-stamp +docs: userdocs progdocs + +userdocs progdocs: .dir-stamp + $(MAKE) -C doc -f $(srcdir_abs)/doc/Makefile $@ + tags: cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]` clean: - find . -name "*.[oa]" -or -name core -or -name depend | xargs rm -f + find . -name "*.[oa]" -o -name core -o -name depend -o -name "*.html" | xargs rm -f rm -f $(exedir)/bird $(exedir)/birdc $(exedir)/bird.ctl .dep-stamp distclean: clean diff --git a/tools/Rules.in b/tools/Rules.in index a10f76f..6e78626 100644 --- a/tools/Rules.in +++ b/tools/Rules.in @@ -1,7 +1,8 @@ # Makefile fragments for the BIRD Internet Routing Daemon -# (c) 1999 Martin Mares <mj@ucw.cz> +# (c) 1999--2000 Martin Mares <mj@ucw.cz> srcdir=@srcdir_rel_mf@ +srcdir_abs := $(shell cd $(srcdir) ; pwd) objdir=@objdir@ exedir=@exedir@ @@ -12,8 +13,10 @@ dynamic-dirs := lib conf dynamic-dir-paths := $(dynamic-dirs) client-dirs := @CLIENT@ client-dir-paths := $(client-dirs) +doc-dirs := doc +doc-dir-paths := $(doc-dirs) -all-dirs:=$(static-dirs) $(dynamic-dirs) $(client-dirs) +all-dirs:=$(static-dirs) $(dynamic-dirs) $(client-dirs) $(doc-dirs) clean-dirs:=$(all-dirs) proto sysdep CPPFLAGS=-I$(root-rel) -I$(srcdir) @CPPFLAGS@ |