Annotation of embedaddon/bird/doc/Makefile, revision 1.1.1.2
1.1 misho 1: root-rel=../
2: dir-name=doc
3:
4: ifneq ($(wildcard ../Rules),)
5: include ../Rules
6: else
7: srcdir=$(shell cd $(root-rel) ; pwd)
8: srcdir_abs=$(srcdir)
9: endif
10:
1.1.1.2 ! misho 11: export TEXINPUTS := $(TEXINPUTS):$(srcdir_abs)/doc/tex
! 12:
1.1 misho 13: # Force rebuilds
14: .PHONY: prog.sgml bird.sgml
15:
16: docs: progdocs userdocs
1.1.1.2 ! misho 17: progdocs: prog.html prog.pdf
1.1 misho 18: userdocs: bird.html bird.pdf
19:
20: prog.sgml:
21: $(srcdir)/tools/progdoc $(srcdir_abs)
22:
23: %.html: %.sgml
24: ./sgml2html $<
25:
26: %.dvi: %.tex
27: latex $<
28: latex $<
29:
30: %.ps: %.dvi
31: dvips -D600 -ta4 -o $@ $<
32:
33: %.pdf: %.tex
34: pdflatex $<
35: pdflatex $<
36:
37: %.tex: %.sgml
38: ./sgml2latex --output=tex $<
39:
40: %.txt: %.sgml
41: ./sgml2txt $<
42:
43: progspell: prog.sgml
44: sed -f prog-spell.sed <prog.sgml >prog.spell
45: ispell prog.spell
46:
47: clean:
48: rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell
49: rm -f prog.sgml
50:
51: distclean: clean
52: rm -f *.html *.ps
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>