Commit 46527a93 authored by Martin Mareš's avatar Martin Mareš

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.
parent fcb5f4a7
root-rel=../
dir-name=doc
ifneq ($(wildcard ../Rules),)
include ../Rules
else
srcdir=$(shell cd $(root-rel) ; pwd)
srcdir_abs=$(srcdir)
endif
progdocs:
mkdir -p prog
# Force rebuilds
.PHONY: prog.sgml bird.sgml
docs: progdocs userdocs
progdocs: prog.html
prog.sgml:
$(srcdir)/tools/progdoc $(srcdir_abs)
%.html: %.sgml
......@@ -13,16 +24,17 @@ progdocs:
%.info: %.sgml
sgml2info $<
%.txt: %.sgml
sgml2txt $<
%.dvi: %.sgml
./sgml2latex $<
%.tex: %.sgml
./sgml2latex --output=tex $<
userdocs: bird.html bird.dvi
%.txt: %.sgml
./sgml2txt $<
userdocs: bird.html bird.dvi bird.txt
clean:
rm *.html *.tex *.dvi *.log
rm -f *.html *.tex *.dvi *.log *.ps *.txt
rm -f prog.sgml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment