Annotation of embedaddon/bird2/doc/Makefile, revision 1.1.1.1
1.1 misho 1: # Force rebuilds
2: .PHONY: progspell docs progdocs userdocs
3:
4: doc-srcdir := $(shell cd $(s) && pwd)
5: sgml2 := $(doc-srcdir)/sgml2
6:
7: docs: progdocs userdocs
8:
9: doc-fmt = $(1): $(o)prog.$(1) $(o)bird.$(1)
10: $(call doc-fmt,html)
11: $(call doc-fmt,dvi)
12: $(call doc-fmt,ps)
13: $(call doc-fmt,pdf)
14:
15: progdocs: $(o)prog.html $(o)prog.pdf
16: userdocs: $(o)bird.html $(o)bird.pdf
17: progspell: $(o)prog.spell
18:
19: $(o)prog.sgml: $(srcdir)/tools/progdoc $(objdir)/.dir-stamp
20: $(srcdir)/tools/progdoc $(srcdir) $@
21:
22: $(o)%.sgml: $(s)%.sgml $(objdir)/.dir-stamp
23: cp $< $@
24:
25: $(o)%.html: $(o)%.sgml
26: cd $(dir $@) && $(sgml2)html $(notdir $<)
27:
28: $(o)%.tex: $(o)%.sgml
29: cd $(dir $@) && $(sgml2)latex --output=tex $(notdir $<)
30:
31: $(o)%.dvi: $(o)%.tex
32: cd $(dir $@) && TEXINPUTS=$(TEXINPUTS):$(doc-srcdir)/tex latex $(notdir $<)
33: cd $(dir $@) && TEXINPUTS=$(TEXINPUTS):$(doc-srcdir)/tex latex $(notdir $<)
34:
35: $(o)%.ps: $(o)%.dvi
36: dvips -D600 -ta4 -o $@ $<
37:
38: $(o)%.pdf: $(o)%.tex
39: TEXINPUTS=$(TEXINPUTS):$(doc-srcdir)/tex pdflatex -output-directory=$(dir $@) $<
40: TEXINPUTS=$(TEXINPUTS):$(doc-srcdir)/tex pdflatex -output-directory=$(dir $@) $<
41:
42: $(o)%.txt: $(o)%.sgml
43: cd $(dir $@) && $(sgml2)txt $(notdir $<)
44:
45: $(o)prog.spell: $(o)prog.sgml $(s)prog-spell.sed
46: sed -f $(lastword $^) <$< >$@
47: ispell $@
48:
49: $(call clean,prog.spell $(addprefix *.,html dvi ps pdf sgml tex txt aux log toc))
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>