File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / bird / doc / Makefile
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 19:50:23 2021 UTC (3 years, 3 months ago) by misho
Branches: bird, MAIN
CVS tags: v1_6_8p3, HEAD
bird 1.6.8

root-rel=../
dir-name=doc

ifneq ($(wildcard ../Rules),)
include ../Rules
else
srcdir=$(shell cd $(root-rel) ; pwd)
srcdir_abs=$(srcdir)
endif

export TEXINPUTS := $(TEXINPUTS):$(srcdir_abs)/doc/tex

# Force rebuilds
.PHONY: prog.sgml bird.sgml

docs: progdocs userdocs
progdocs: prog.html prog.pdf
userdocs: bird.html bird.pdf

prog.sgml:
	$(srcdir)/tools/progdoc $(srcdir_abs)

%.html: %.sgml
	./sgml2html $<

%.dvi: %.tex
	latex $<
	latex $<

%.ps: %.dvi
	dvips -D600 -ta4 -o $@ $<

%.pdf: %.tex
	pdflatex $<
	pdflatex $<

%.tex: %.sgml
	./sgml2latex --output=tex $<

%.txt: %.sgml
	./sgml2txt $<

progspell: prog.sgml
	sed -f prog-spell.sed <prog.sgml >prog.spell
	ispell prog.spell

clean:
	rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell
	rm -f prog.sgml

distclean: clean
	rm -f *.html *.ps

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>