2007-02-25 19:13:49 +00:00
|
|
|
ifeq ($(TOPDIR),)
|
|
|
|
TOPDIR:=${CURDIR}/..
|
|
|
|
endif
|
2008-06-09 15:38:23 +00:00
|
|
|
PKG_NAME=docs
|
2007-02-25 19:13:49 +00:00
|
|
|
|
2007-07-10 16:38:05 +00:00
|
|
|
all: compile
|
|
|
|
|
2007-02-25 19:13:49 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/prereq.mk
|
|
|
|
|
2007-01-25 13:15:57 +00:00
|
|
|
MAIN = openwrt.tex
|
2007-02-25 23:27:54 +00:00
|
|
|
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
|
2007-01-25 13:15:57 +00:00
|
|
|
|
2008-06-09 15:38:23 +00:00
|
|
|
compile: $(TMP_DIR)/.prereq-docs
|
2007-02-25 23:50:22 +00:00
|
|
|
$(NO_TRACE_MAKE) cleanup
|
2007-01-25 13:15:57 +00:00
|
|
|
latex $(MAIN)
|
2007-02-25 23:50:22 +00:00
|
|
|
$(NO_TRACE_MAKE) openwrt.pdf openwrt.html
|
|
|
|
$(NO_TRACE_MAKE) cleanup
|
2007-01-25 13:15:57 +00:00
|
|
|
|
2007-02-25 23:27:54 +00:00
|
|
|
$(TMP_DIR)/.prereq-docs:
|
2008-01-07 07:16:00 +00:00
|
|
|
mkdir -p $(TMP_DIR)
|
2007-02-25 23:50:22 +00:00
|
|
|
$(NO_TRACE_MAKE) prereq
|
2007-02-25 19:13:49 +00:00
|
|
|
touch $@
|
|
|
|
|
2007-01-25 13:15:57 +00:00
|
|
|
openwrt.html: $(DEPS)
|
|
|
|
htlatex $(MAIN)
|
|
|
|
|
|
|
|
openwrt.pdf: $(DEPS)
|
|
|
|
pdflatex $(MAIN)
|
2008-01-07 07:16:00 +00:00
|
|
|
|
2006-10-13 22:41:34 +00:00
|
|
|
clean: cleanup
|
2007-01-25 13:15:57 +00:00
|
|
|
rm -f openwrt.pdf openwrt.html openwrt.css
|
2006-10-13 22:41:34 +00:00
|
|
|
|
|
|
|
cleanup: FORCE
|
2007-01-25 13:15:57 +00:00
|
|
|
rm -f *.log *.aux *.toc *.out *.lg *.dvi *.idv *.4ct *.4tc *.xref *.tmp *.dvi
|
2006-10-13 22:41:34 +00:00
|
|
|
|
2007-08-03 09:31:47 +00:00
|
|
|
$(eval $(call RequireCommand,latex, \
|
|
|
|
You need to install LaTeX to build the OpenWrt documentation \
|
|
|
|
))
|
2007-02-25 19:13:49 +00:00
|
|
|
$(eval $(call RequireCommand,pdflatex, \
|
2008-08-06 14:30:24 +00:00
|
|
|
You need to install PDFLaTeX to build the OpenWrt documentation \
|
2007-02-25 19:13:49 +00:00
|
|
|
))
|
|
|
|
$(eval $(call RequireCommand,htlatex, \
|
|
|
|
You need to install tex4ht to build the OpenWrt documentation \
|
|
|
|
))
|
2006-10-13 22:41:34 +00:00
|
|
|
|
|
|
|
FORCE:
|
|
|
|
.PHONY: FORCE
|