summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5dae6d2..c575f58 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-articles = $(patsubst %.md,%,$(wildcard public/*.md))
+articles = $(filter-out public/index,$(patsubst %.md,%,$(wildcard public/*.md)))
.DELETE_ON_ERROR:
.SECONDARY:
@@ -7,7 +7,7 @@ all: public/index.html $(addsuffix .html,$(articles))
public/%.html: public/%.md pagerender.rb template.erb Makefile
./pagerender.rb $< > $@
-public/index.html: $(addsuffix .md,$(articles)) index.rb template.erb Makefile
- ./index.rb $(sort $(filter-out Makefile index.rb template.erb,$^)) > $@
+public/index.md: $(addsuffix .md,$(articles)) index.rb Makefile
+ ./index.rb $(sort $(filter-out Makefile index.rb public/index.md,$^)) > $@
clean:
- rm -- public/*.html
+ rm -f -- public/*.html public/index.md