diff options
-rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,18 +1,17 @@ POSTS_MD = $(wildcard posts/*.md) POSTS_XML = $(wildcard posts/*.xml) +POSTS_HTML = $(POSTS_MD:.md=.html) $(POSTS_XML:.xml=.html) SCSS = $(wildcard scss/_*.scss) -HTML = $(POSTS_MD:.md=.html) $(POSTS_XML:.xml=.html) - .PHONY: site site: index.html atom.xml style.css man.css -index.html: templates/index.xml $(HTML) - sblg -o $@ -t templates/index.xml $(HTML) +index.html: templates/index.xml $(POSTS_HTML) + sblg -o $@ -t templates/index.xml $(POSTS_HTML) -atom.xml: templates/atom.xml $(HTML) - sblg -ao $@ -t templates/atom.xml $(HTML) +atom.xml: templates/atom.xml $(POSTS_HTML) + sblg -ao $@ -t templates/atom.xml $(POSTS_HTML) %.html: %.xml templates/post.xml sblg -co $@ -t templates/post.xml $< |