update `Makefile`
parent
674fd4c52a
commit
01564dc885
4
Makefile
4
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
|
||||
|
|
Loading…
Reference in New Issue