Doc/s5/Makefile
raw| 1 | |
| 2 | SLIDES=$(subst .txt,.html,$(wildcard *.txt)) |
| 3 | SOURCES=$(subst .py,.c,$(subst .pyx,.c,$(wildcard */*.py */*.pyx))) |
| 4 | |
| 5 | slides: $(SLIDES) $(SOURCES) |
| 6 | |
| 7 | %.html: %.txt |
| 8 | rst2s5 --current-slide --language=en $< $@ |
| 9 | |
| 10 | %.c: %.py |
| 11 | cython --annotate $< |
| 12 | |
| 13 | %.c: %.pyx |
| 14 | cython --annotate $< |
| 15 | |
| 16 | clean: |
| 17 | rm -f *~ $(SLIDES) $(SOURCES) $(subst .c,.html,$(SOURCES)) |