summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c573790..de1cfa9 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,9 @@ all: public/index.html $(addsuffix .html,$(articles))
public/%.html: public/%.md pagerender.rb template.erb Makefile
./pagerender.rb $< > $@
-public/index.md: $(addsuffix .md,$(articles)) index.rb Makefile
- ./index.rb $(filter-out Makefile index.rb public/index.md,$^) > $@
+public/index.md: public/ $(addsuffix .md,$(articles)) index.rb Makefile
+ ./index.rb $(filter-out public/ index.rb Makefile $@,$^) > $@
+ touch public/
+ touch $@
clean:
rm -f -- public/*.html public/index.md