diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-19 23:54:11 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-19 23:54:11 -0600 |
commit | cb705f2a049a822d0c481dc849e70dfda4745408 (patch) | |
tree | ec8949ca21983c6a9a885eaeb926d134d1f91b75 /Makefile | |
parent | f26c689c14eb3a048f268b02fd5e98afe5b49142 (diff) |
Makefile: correctly remove deleted posts from the index
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |