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