Modified the Makefile to work in the source tree.
From now, you can just `make userdocs' in doc, no need to use ugly scripts. Also, `make progdocs' builds the programmer's documentation in HTML, LaTeX version to come later.
This commit is contained in:
parent
fcb5f4a725
commit
46527a939e
1 changed files with 19 additions and 7 deletions
26
doc/Makefile
26
doc/Makefile
|
@ -1,10 +1,21 @@
|
||||||
root-rel=../
|
root-rel=../
|
||||||
dir-name=doc
|
dir-name=doc
|
||||||
|
|
||||||
|
ifneq ($(wildcard ../Rules),)
|
||||||
include ../Rules
|
include ../Rules
|
||||||
|
else
|
||||||
|
srcdir=$(shell cd $(root-rel) ; pwd)
|
||||||
|
srcdir_abs=$(srcdir)
|
||||||
|
endif
|
||||||
|
|
||||||
progdocs:
|
# Force rebuilds
|
||||||
mkdir -p prog
|
.PHONY: prog.sgml bird.sgml
|
||||||
|
|
||||||
|
docs: progdocs userdocs
|
||||||
|
|
||||||
|
progdocs: prog.html
|
||||||
|
|
||||||
|
prog.sgml:
|
||||||
$(srcdir)/tools/progdoc $(srcdir_abs)
|
$(srcdir)/tools/progdoc $(srcdir_abs)
|
||||||
|
|
||||||
%.html: %.sgml
|
%.html: %.sgml
|
||||||
|
@ -13,16 +24,17 @@ progdocs:
|
||||||
%.info: %.sgml
|
%.info: %.sgml
|
||||||
sgml2info $<
|
sgml2info $<
|
||||||
|
|
||||||
%.txt: %.sgml
|
|
||||||
sgml2txt $<
|
|
||||||
|
|
||||||
%.dvi: %.sgml
|
%.dvi: %.sgml
|
||||||
./sgml2latex $<
|
./sgml2latex $<
|
||||||
|
|
||||||
%.tex: %.sgml
|
%.tex: %.sgml
|
||||||
./sgml2latex --output=tex $<
|
./sgml2latex --output=tex $<
|
||||||
|
|
||||||
userdocs: bird.html bird.dvi
|
%.txt: %.sgml
|
||||||
|
./sgml2txt $<
|
||||||
|
|
||||||
|
userdocs: bird.html bird.dvi bird.txt
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm *.html *.tex *.dvi *.log
|
rm -f *.html *.tex *.dvi *.log *.ps *.txt
|
||||||
|
rm -f prog.sgml
|
||||||
|
|
Loading…
Reference in a new issue