| 1 |
#---*- Makefile -*------------------------------------------------------- |
| 2 |
|
| 3 |
# Makelocal-output |
| 4 |
|
| 5 |
PDF_FILES = ${RST_FILES:%.rst=%.pdf} |
| 6 |
|
| 7 |
.PHONY: pdf |
| 8 |
|
| 9 |
pdf: ${PDF_FILES} |
| 10 |
|
| 11 |
%.pdf: %.rst |
| 12 |
pandoc $< -o $@ |
| 13 |
|
| 14 |
HTML_FILES = ${RST_FILES:%.rst=%.html} |
| 15 |
|
| 16 |
.PHONY: html |
| 17 |
|
| 18 |
html: ${HTML_FILES} |
| 19 |
|
| 20 |
%.html: %.rst ./tests/makefiles/style.css |
| 21 |
$(shell which rst2html5.py || which rst2html5 || echo "rst2html5.py") -d --syntax-highlight=none --stylesheet=$(word 2, $^) $< $@ |
| 22 |
|
| 23 |
.PHONY: clean clean-output |
| 24 |
|
| 25 |
clean: clean-output |
| 26 |
|
| 27 |
clean-output: |
| 28 |
rm -f $(PDF_FILES) $(HTML_FILES) |