steed/doc/Makefile

29 lines
989 B
Makefile

include ../Rules.make
include ../config.make
pdf:
if xelatex manual.tex; then test; else pdflatex manual.tex; fi
makeindex manual.idx
if xelatex manual.tex; then test; else pdflatex manual.tex; fi
$(RM) -f manual.aux manual.log manual.toc manual.out manual.idx manual.ind manual.ilg
#to-do: interpret $PATH
wiki:
wget "http://instead.pinebrush.com/wiki/doku.php?id=ru:gamedev:documentation&do=export_xhtml" -O writing_games.html
wget "http://instead.pinebrush.com/wiki/doku.php?id=en:gamedev:documentation&do=export_xhtml" -O writing_games-en.html
wget "http://instead.pinebrush.com/wiki/doku.php?id=ru:gamedev:documentation&do=export_raw" -O writing_games.txt
wget "http://instead.pinebrush.com/wiki/doku.php?id=en:gamedev:documentation&do=export_raw" -O writing_games-en.txt
clean:
all:
install:
$(INSTALLD) $(DOCPATH)
$(INSTALL) *.html *.txt *.pdf $(DOCPATH)
$(INSTALLD) $(MANPATH)
$(INSTALL) *.6 $(MANPATH)
uninstall:
$(RM) -rf $(DOCPATH)
$(RM) $(MANPATH)/instead.*