forked from getpelican/pelican-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (26 loc) · 922 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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