forked from varia/varia.website
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
922 B
33 lines
922 B
7 years ago
|
MAKE = /usr/bin/make
|
||
|
RST2HTML = ./bootstrap.py
|
||
|
STYLESHEET =
|
||
|
RST2HTML_OPTIONS = --strip-comments \
|
||
|
--report=3 \
|
||
|
--no-doc-title \
|
||
|
--traceback \
|
||
|
--compact-lists \
|
||
|
--no-toc-backlinks \
|
||
|
--syntax-highlight=short \
|
||
|
--template=page.tmpl \
|
||
|
--cloak-email-addresses \
|
||
|
--stylesheet=$(STYLESHEET) \
|
||
|
--link-stylesheet
|
||
|
|
||
|
SOURCES = $(wildcard doc/*.rst)
|
||
|
TMP = $(subst .rst,.html, $(SOURCES))
|
||
|
OBJECTS = $(subst doc/,, $(TMP))
|
||
|
|
||
|
all:$(OBJECTS)
|
||
|
|
||
|
%.html: doc/%.rst
|
||
|
@echo " - $@"
|
||
|
@$(RST2HTML) $(RST2HTML_OPTIONS) $< $@
|
||
|
|
||
|
clean:
|
||
|
@-rm -f $(OBJECTS)
|
||
|
|
||
|
distclean: clean
|
||
|
@-rm -f `find . -name "*~"`
|
||
|
|
||
|
.PHONY: all clean distclean
|