summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2b8f63a..a80d04a 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $<