| 1 |
#! /usr/bin/make |
| 2 |
|
| 3 |
##### This part is to generate html files in the current directory ########### |
| 4 |
|
| 5 |
RSTSOURCES = $(wildcard _sources/*.rst) |
| 6 |
SOURCES_ = $(shell ls _sources/*.rst | grep -v index.rst | sed 's%_sources/%%') |
| 7 |
HTML_FILES = $(patsubst %.rst, %.html, $(SOURCES_)) |
| 8 |
|
| 9 |
all: $(HTML_FILES) |
| 10 |
@echo |
| 11 |
@echo "[Done]" |
| 12 |
%.html: _sources/%.rst |
| 13 |
@echo -n "$@ " |
| 14 |
@rst2html $< $@ |
| 15 |
|
| 16 |
.PHONY: clean |
| 17 |
clean: |
| 18 |
rm -rf $(BUILDDIR)/doctrees |
| 19 |
if [ -z "$(EYES17_ONLY)" ]; then rm -f *.html; fi |
| 20 |
|
| 21 |
|