projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change path to .prereq stampfile
[openwrt.git]
/
docs
/
Makefile
diff --git
a/docs/Makefile
b/docs/Makefile
index
8ee4680
..
d20556a
100644
(file)
--- a/
docs/Makefile
+++ b/
docs/Makefile
@@
-1,15
+1,41
@@
-openwrt.pdf: Makefile openwrt.tex config.tex network.tex network-scripts.tex network-scripts.tex wireless.tex
+ifeq ($(TOPDIR),)
+ TOPDIR:=${CURDIR}/..
+endif
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/prereq.mk
+
+MAIN = openwrt.tex
+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
+
+all:
$(MAKE) cleanup
$(MAKE) cleanup
- pdflatex openwrt.tex
- pdflatex openwrt.tex
+ latex $(MAIN)
+ $(MAKE) openwrt.pdf openwrt.html
$(MAKE) cleanup
$(MAKE) cleanup
+
+$(TMP_DIR)/.prereq-docs:
+ $(MAKE) prereq
+ touch $@
+
+openwrt.html: $(DEPS)
+ htlatex $(MAIN)
+
+openwrt.pdf: $(DEPS)
+ pdflatex $(MAIN)
clean: cleanup
clean: cleanup
- rm -f openwrt.pdf
+ rm -f openwrt.pdf
openwrt.html openwrt.css
cleanup: FORCE
cleanup: FORCE
- rm -f *.log *.aux *.toc
+ rm -f *.log *.aux *.toc
*.out *.lg *.dvi *.idv *.4ct *.4tc *.xref *.tmp *.dvi
+$(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 \
+))
FORCE:
.PHONY: FORCE
FORCE:
.PHONY: FORCE
This page took
0.020285 seconds
and
4
git commands to generate.