Makefile 934 B

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