Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ifeq ($(TOPDIR),)
  2. TOPDIR:=${CURDIR}/..
  3. endif
  4. all: compile
  5. include $(TOPDIR)/rules.mk
  6. include $(INCLUDE_DIR)/prereq.mk
  7. MAIN = openwrt.tex
  8. 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
  9. compile:
  10. $(NO_TRACE_MAKE) cleanup
  11. latex $(MAIN)
  12. $(NO_TRACE_MAKE) openwrt.pdf openwrt.html
  13. $(NO_TRACE_MAKE) cleanup
  14. $(TMP_DIR)/.prereq-docs:
  15. $(NO_TRACE_MAKE) prereq
  16. touch $@
  17. openwrt.html: $(DEPS)
  18. htlatex $(MAIN)
  19. openwrt.pdf: $(DEPS)
  20. pdflatex $(MAIN)
  21. clean: cleanup
  22. rm -f openwrt.pdf openwrt.html openwrt.css
  23. cleanup: FORCE
  24. rm -f *.log *.aux *.toc *.out *.lg *.dvi *.idv *.4ct *.4tc *.xref *.tmp *.dvi
  25. $(eval $(call RequireCommand,latex, \
  26. You need to install LaTeX to build the OpenWrt documentation \
  27. ))
  28. $(eval $(call RequireCommand,pdflatex, \
  29. You need to install LaTeX to build the OpenWrt documentation \
  30. ))
  31. $(eval $(call RequireCommand,htlatex, \
  32. You need to install tex4ht to build the OpenWrt documentation \
  33. ))
  34. FORCE:
  35. .PHONY: FORCE