X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=docs%2FMakefile;h=359f4e63080dcfaf10a3fae2a5bb3c1a8eeb38dc;hb=4ff563f9ef0253edfef84745bede395cb84c6c1c;hp=f311a8fd950c7d6e658f59bfb88becebc4475db9;hpb=d38e13b12b10060e210d7c5ace366cc82eaf9da9;p=openwrt-10.03%2F.git diff --git a/docs/Makefile b/docs/Makefile index f311a8fd9..359f4e630 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 +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: