fixes compile bug of iptables
[openwrt/svn-archive/archive.git] / docs / Makefile
1 ifeq ($(TOPDIR),)
2 TOPDIR:=${CURDIR}/..
3 endif
4
5 include $(TOPDIR)/rules.mk
6 include $(INCLUDE_DIR)/prereq.mk
7
8 MAIN = openwrt.tex
9 DEPS = $(MAIN) Makefile config.tex network.tex network-scripts.tex network-scripts.tex wireless.tex build.tex adding.tex bugs.tex $(TMP_DIR)/.prereq-docs
10
11 all:
12 $(NO_TRACE_MAKE) cleanup
13 latex $(MAIN)
14 $(NO_TRACE_MAKE) openwrt.pdf openwrt.html
15 $(NO_TRACE_MAKE) cleanup
16
17 $(TMP_DIR)/.prereq-docs:
18 $(NO_TRACE_MAKE) prereq
19 touch $@
20
21 openwrt.html: $(DEPS)
22 htlatex $(MAIN)
23
24 openwrt.pdf: $(DEPS)
25 pdflatex $(MAIN)
26
27 clean: cleanup
28 rm -f openwrt.pdf openwrt.html openwrt.css
29
30 cleanup: FORCE
31 rm -f *.log *.aux *.toc *.out *.lg *.dvi *.idv *.4ct *.4tc *.xref *.tmp *.dvi
32
33 $(eval $(call RequireCommand,pdflatex, \
34 You need to install LaTeX to build the OpenWrt documentation \
35 ))
36 $(eval $(call RequireCommand,htlatex, \
37 You need to install tex4ht to build the OpenWrt documentation \
38 ))
39
40 FORCE:
41 .PHONY: FORCE