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-25 21:13:49 +02:00
|
|
|
DEPS = $(MAIN) Makefile config.tex network.tex network-scripts.tex network-scripts.tex wireless.tex build.tex adding.tex bugs.tex .prereq
|
2007-01-25 15:15:57 +02:00
|
|
|
|
|
|
|
all:
|
2006-10-14 01:41:34 +03:00
|
|
|
$(MAKE) cleanup
|
2007-01-25 15:15:57 +02:00
|
|
|
latex $(MAIN)
|
|
|
|
$(MAKE) openwrt.pdf openwrt.html
|
2006-10-14 01:41:34 +03:00
|
|
|
$(MAKE) cleanup
|
2007-01-25 15:15:57 +02:00
|
|
|
|
2007-02-25 21:13:49 +02:00
|
|
|
.prereq:
|
|
|
|
$(MAKE) prereq
|
|
|
|
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
|