diff --git a/Makefile b/Makefile index 948ea92..fd8271f 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ SHELL = /bin/sh getpages = $(patsubst %.md,public_html/%.html,$(1)) getparts = $(patsubst %.md,public_html/%.html.part,$(1)) -all: $(call getpages,$(shell pandoc lua pandoc/links.lua --follow index.md)) .PHONY: all +all: public_html/index.html $(call getpages,$(shell pandoc lua pandoc/links.lua --follow index.md)) public_html/%.html: %.md $(eval links := $(shell pandoc lua pandoc/links.lua $<)) @@ -30,8 +30,6 @@ public_html/%.html.part: %.md --output $@ \ $< - -# clean all targets .PHONY: clean clean: $(RM) public_html/*.html.part