update `Makefile`

master
urosm 2024-05-02 21:43:58 +02:00
parent 674fd4c52a
commit 01564dc885
1 changed files with 1 additions and 3 deletions

View File

@ -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