-
Notifications
You must be signed in to change notification settings - Fork 126
/
Makefile
31 lines (24 loc) · 837 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
MAKE = /usr/bin/make
RST2HTML = ./rst2html.py
STYLESHEET = stylesheet.css
RST2HTML_OPTIONS = --strip-comments \
--report=3 \
--section-numbering \
--no-toc-backlinks \
--template=page.tmpl \
--cloak-email-addresses \
--stylesheet=$(STYLESHEET) \
--link-stylesheet
SOURCES = $(wildcard *.rst)
OBJECTS = $(subst .rst,.html, $(SOURCES))
all: $(OBJECTS) pygment.css
#pygment.css:
# @pygmentize -S tango -f html > pygment.css
%.html: %.rst Makefile
@echo " - $@"
@$(RST2HTML) $(RST2HTML_OPTIONS) $< $@
clean:
@-rm -f $(OBJECTS)
distclean: clean
@-rm -f `find . -name "*~"`
.PHONY: all home clean distclean