Revision b1777248

View differences:

TODO
14 14
- configure: --enable-ipv6
15 15
- configure: IPv6 on glibc 2.0?
16 16

  
17
- Makefile: install target?
18

  
17 19
- forgetting device routes???
18 20
- kernel syncer doesn't support reconfiguration
19 21
- filter-defined internal attributes
doc/Makefile
1
# Makefile for bird documentation system
1
root-rel=../
2
dir-name=doc
2 3

  
4
include ../Rules
3 5

  
4
SHELL = /bin/sh
6
progdocs:
7
	mkdir -p prog
8
	$(srcdir)/tools/progdoc $(srcdir_abs)
5 9

  
6
all: internals.html
7
#	bird.html
8

  
9
clean:
10
	rm *.html *.tex *.dvi *.log
10
userdocs:
11 11

  
12 12
%.html: %.sgml
13 13
	./sgml2html $<
14 14

  
15
dnl INFO format:
16

  
17 15
%.info: %.sgml
18 16
	sgml2info $<
19 17

  
20
dnl TXT format:
21

  
22 18
%.txt: %.sgml
23 19
	sgml2txt $<
24 20

  
25
dnl LATEX format:
26

  
27 21
%.dvi: %.sgml
28 22
	./sgml2latex $<
29 23

  
30 24
%.tex: %.sgml
31 25
	./sgml2latex --output=tex $<
32 26

  
33
internals.html: ../filter/filter.c ../proto/rip/rip.c
34
	kernel-doc -html ../filter/filter.c ../proto/rip/rip.c > internals.html
27
clean:
28
	rm *.html *.tex *.dvi *.log
tools/Makefile-top.in
1 1
# Makefile for in place build of BIRD
2
# (c) 1999 Martin Mares <mj@ucw.cz>
2
# (c) 1999--2000 Martin Mares <mj@ucw.cz>
3 3

  
4 4
objdir=@objdir@
5 5

  
6
all depend tags:
6
all depend tags docs userdocs progdocs:
7 7
	$(MAKE) -C $(objdir) $@
8 8

  
9 9
clean:
tools/Makefile.in
3 3

  
4 4
include Rules
5 5

  
6
srcdir_abs := $(shell cd $(srcdir) ; pwd)
7

  
8
.PHONY: all daemon client subdir depend clean distclean tags
6
.PHONY: all daemon client subdir depend clean distclean tags docs userdocs progdocs
9 7

  
10 8
all: .dep-stamp subdir daemon @CLIENT@
11 9

  
......
24 22
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS)
25 23

  
26 24
.dir-stamp:
27
	mkdir -p $(static-dirs) $(client-dirs)
25
	mkdir -p $(static-dirs) $(client-dirs) $(doc-dirs)
28 26
	touch .dir-stamp
29 27

  
30 28
.dep-stamp:
31 29
	$(MAKE) depend
32 30
	touch .dep-stamp
33 31

  
32
docs: userdocs progdocs
33

  
34
userdocs progdocs: .dir-stamp
35
	$(MAKE) -C doc -f $(srcdir_abs)/doc/Makefile $@
36

  
34 37
tags:
35 38
	cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]`
36 39

  
37 40
clean:
38
	find . -name "*.[oa]" -or -name core -or -name depend | xargs rm -f
41
	find . -name "*.[oa]" -o -name core -o -name depend -o -name "*.html" | xargs rm -f
39 42
	rm -f $(exedir)/bird $(exedir)/birdc $(exedir)/bird.ctl .dep-stamp
40 43

  
41 44
distclean: clean
tools/Rules.in
1 1
# Makefile fragments for the BIRD Internet Routing Daemon
2
# (c) 1999 Martin Mares <mj@ucw.cz>
2
# (c) 1999--2000 Martin Mares <mj@ucw.cz>
3 3

  
4 4
srcdir=@srcdir_rel_mf@
5
srcdir_abs := $(shell cd $(srcdir) ; pwd)
5 6
objdir=@objdir@
6 7
exedir=@exedir@
7 8

  
......
12 13
dynamic-dir-paths := $(dynamic-dirs)
13 14
client-dirs := @CLIENT@
14 15
client-dir-paths := $(client-dirs)
16
doc-dirs := doc
17
doc-dir-paths := $(doc-dirs)
15 18

  
16
all-dirs:=$(static-dirs) $(dynamic-dirs) $(client-dirs)
19
all-dirs:=$(static-dirs) $(dynamic-dirs) $(client-dirs) $(doc-dirs)
17 20
clean-dirs:=$(all-dirs) proto sysdep
18 21

  
19 22
CPPFLAGS=-I$(root-rel) -I$(srcdir) @CPPFLAGS@

Also available in: Unified diff