From cb705f2a049a822d0c481dc849e70dfda4745408 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 19 May 2015 23:54:11 -0600 Subject: Makefile: correctly remove deleted posts from the index --- Makefile | 6 ++++-- 1 file 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 -- cgit v1.2.3