7thSea/Current/Makefile

25 lines
601 B
Makefile

clean:
rm *.dvi
rm *.log
rm out.xml
echo "Nothing to clean"
out.xml: DocBook/book.xml DocBook/intro.xml DocBook/chars.xml DocBook/append-intro.xml DocBook/append-chars.xml DocBook/append-append.xml
xmllint --xinclude DocBook/book.xml --output out.xml
LaTeX/Book.tex: out.xml
dblatex -ttex out.xml -o LaTeX/Book.tex
HTML/Book.html: out.xml
pandoc -s -f docbook out.xml -o HTML/Book.html
Book.dvi: LaTeX/Book.tex
latex LaTeX/Book.tex
latex LaTeX/Book.tex
Book.pdf: Book.dvi
dvipdf.sh Book
Book-xelatex.pdf: out.xml
pandoc -s -f docbook out.xml --pdf-engine=xelatex -o Book-xelatex.pdf