#! /usr/bin/make ##### This part is to generate html files in the current directory ########### RSTSOURCES = $(wildcard _sources/*.rst) SOURCES_ = $(shell ls _sources/*.rst | grep -v index.rst | sed 's%_sources/%%') HTML_FILES = $(patsubst %.rst, %.html, $(SOURCES_)) all: $(HTML_FILES) @echo @echo "[Done]" %.html: _sources/%.rst @echo -n "$@ " @rst2html $< $@ .PHONY: clean clean: rm -rf $(BUILDDIR)/doctrees if [ -z "$(EYES17_ONLY)" ]; then rm -f *.html; fi