X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=docs%2FMakefile;fp=docs%2FMakefile;h=359f4e63080dcfaf10a3fae2a5bb3c1a8eeb38dc;hb=bd65cba389cc1a07502f489d90125a01586c51ee;hp=8c3ca646ddf757b967c0ba7f7111f89fc31616bb;hpb=b1f7ab384b72c00e43e6f36201af9cb4ba141b47;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/docs/Makefile b/docs/Makefile index 8c3ca646dd..359f4e6308 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,14 +1,23 @@ -openwrt.pdf: Makefile openwrt.tex config.tex network.tex network-scripts.tex network-scripts.tex wireless.tex build.tex adding.tex bugs.tex +MAIN = openwrt.tex +DEPS = $(MAIN) Makefile config.tex network.tex network-scripts.tex network-scripts.tex wireless.tex build.tex adding.tex bugs.tex + +all: $(MAKE) cleanup - pdflatex openwrt.tex - pdflatex openwrt.tex + latex $(MAIN) + $(MAKE) openwrt.pdf openwrt.html $(MAKE) cleanup + +openwrt.html: $(DEPS) + htlatex $(MAIN) + +openwrt.pdf: $(DEPS) + pdflatex $(MAIN) clean: cleanup - rm -f openwrt.pdf + rm -f openwrt.pdf openwrt.html openwrt.css cleanup: FORCE - rm -f *.log *.aux *.toc *.out + rm -f *.log *.aux *.toc *.out *.lg *.dvi *.idv *.4ct *.4tc *.xref *.tmp *.dvi FORCE: