summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-19 23:54:11 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-05-19 23:54:11 -0600
commitcb705f2a049a822d0c481dc849e70dfda4745408 (patch)
treeec8949ca21983c6a9a885eaeb926d134d1f91b75
parentf26c689c14eb3a048f268b02fd5e98afe5b49142 (diff)
Makefile: correctly remove deleted posts from the index
-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