add high-speed usb serial fix from Junxion to 2.4 kernel too (closes: #2274)
[openwrt.git] / docs / Makefile
1 ifeq ($(TOPDIR),)
2 TOPDIR:=${CURDIR}/..
3 endif
4
5 all: compile
6
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/prereq.mk
9
10 MAIN = openwrt.tex
11 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
12
13 compile:
14 $(NO_TRACE_MAKE) cleanup
15 latex $(MAIN)
16 $(NO_TRACE_MAKE) openwrt.pdf openwrt.html
17 $(NO_TRACE_MAKE) cleanup
18
19 $(TMP_DIR)/.prereq-docs:
20 $(NO_TRACE_MAKE) prereq
21 touch $@
22
23 openwrt.html: $(DEPS)
24 htlatex $(MAIN)
25
26 openwrt.pdf: $(DEPS)
27 pdflatex $(MAIN)
28
29 clean: cleanup
30 rm -f openwrt.pdf openwrt.html openwrt.css
31
32 cleanup: FORCE
33 rm -f *.log *.aux *.toc *.out *.lg *.dvi *.idv *.4ct *.4tc *.xref *.tmp *.dvi
34
35 $(eval $(call RequireCommand,latex, \
36 You need to install LaTeX to build the OpenWrt documentation \
37 ))
38 $(eval $(call RequireCommand,pdflatex, \
39 You need to install LaTeX to build the OpenWrt documentation \
40 ))
41 $(eval $(call RequireCommand,htlatex, \
42 You need to install tex4ht to build the OpenWrt documentation \
43 ))
44
45 FORCE:
46 .PHONY: FORCE
This page took 0.044864 seconds and 5 git commands to generate.