minor edit
authorDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 21:25:07 +0000 (23:25 +0200)
committerDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 21:25:07 +0000 (23:25 +0200)
Makefile

index c74c12a..94a9ea2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,20 +6,20 @@ S=img/
 all: build/index.html blog $S
        cp -av $S build/
 
-blog: build/blog/ $(posts)
-
 build/:
        mkdir -p $@
 
-build/blog/: build/
-       mkdir -p $@
-
 build/index.html: index.md build/ inc/head.template inc/foot.template
        sed "s/__TITLE__/thefekete.net/; /__DATE__/d" inc/head.template >$@
        markdown index.md >>$@
        echo "<p><small>Last updated `date -u`</small></p>" >>$@
        cat inc/foot.template >>$@
 
+blog: build/blog/ $(posts)
+
+build/blog/: build/
+       mkdir -p $@
+
 build/blog/%.html: blog/%.md build/ inc/head.template inc/foot.template
        @# `pacman -S discount` for `markdown`
        bin/blog.awk $< >$@