Makefile 922 B

123456789101112131415161718192021222324252627282930313233
  1. MAKE = /usr/bin/make
  2. RST2HTML = ./bootstrap.py
  3. STYLESHEET =
  4. RST2HTML_OPTIONS = --strip-comments \
  5. --report=3 \
  6. --no-doc-title \
  7. --traceback \
  8. --compact-lists \
  9. --no-toc-backlinks \
  10. --syntax-highlight=short \
  11. --template=page.tmpl \
  12. --cloak-email-addresses \
  13. --stylesheet=$(STYLESHEET) \
  14. --link-stylesheet
  15. SOURCES = $(wildcard doc/*.rst)
  16. TMP = $(subst .rst,.html, $(SOURCES))
  17. OBJECTS = $(subst doc/,, $(TMP))
  18. all:$(OBJECTS)
  19. %.html: doc/%.rst
  20. @echo " - $@"
  21. @$(RST2HTML) $(RST2HTML_OPTIONS) $< $@
  22. clean:
  23. @-rm -f $(OBJECTS)
  24. distclean: clean
  25. @-rm -f `find . -name "*~"`
  26. .PHONY: all clean distclean