update `Makefile`
parent
674fd4c52a
commit
01564dc885
4
Makefile
4
Makefile
|
@ -5,8 +5,8 @@ SHELL = /bin/sh
|
||||||
getpages = $(patsubst %.md,public_html/%.html,$(1))
|
getpages = $(patsubst %.md,public_html/%.html,$(1))
|
||||||
getparts = $(patsubst %.md,public_html/%.html.part,$(1))
|
getparts = $(patsubst %.md,public_html/%.html.part,$(1))
|
||||||
|
|
||||||
all: $(call getpages,$(shell pandoc lua pandoc/links.lua --follow index.md))
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
all: public_html/index.html $(call getpages,$(shell pandoc lua pandoc/links.lua --follow index.md))
|
||||||
|
|
||||||
public_html/%.html: %.md
|
public_html/%.html: %.md
|
||||||
$(eval links := $(shell pandoc lua pandoc/links.lua $<))
|
$(eval links := $(shell pandoc lua pandoc/links.lua $<))
|
||||||
|
@ -30,8 +30,6 @@ public_html/%.html.part: %.md
|
||||||
--output $@ \
|
--output $@ \
|
||||||
$<
|
$<
|
||||||
|
|
||||||
|
|
||||||
# clean all targets
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
$(RM) public_html/*.html.part
|
$(RM) public_html/*.html.part
|
||||||
|
|
Loading…
Reference in New Issue