Removed Makefile as unnecessary
Getty Ritter
10 years ago
| 1 | GEN = ./generator/generate | |
| 2 | ||
| 3 | all: output/index.html output/archive/index.html output/tags/index.html \ | |
| 4 | output/about/index.html $(wildcard output/post/*/index.html) | |
| 5 | ||
| 6 | output/index.html: posts/* | |
| 7 | mkdir -p `dirname $@` | |
| 8 | $(GEN) index posts/`ls -t posts | head -n 1` | |
| 9 | ||
| 10 | output/archive/index.html: site.scm | |
| 11 | mkdir -p `dirname $@` | |
| 12 | $(GEN) archive | |
| 13 | ||
| 14 | output/tags/index.html: site.scm | |
| 15 | mkdir -p `dirname $@` | |
| 16 | $(GEN) tags | |
| 17 | ||
| 18 | output/post/%/index.html: posts/%.telml | |
| 19 | mkdir -p `dirname $@` | |
| 20 | $(GEN) post $< | |
| 21 | ||
| 22 | output/about/index.html: pages/about.telml | |
| 23 | mkdir -p `dirname $@` | |
| 24 | $(GEN) about pages/about.telml |