mirror of
https://github.com/troydhanson/tpl.git
synced 2024-12-27 08:05:39 +08:00
17 lines
300 B
Makefile
17 lines
300 B
Makefile
HTML=$(patsubst %.txt,%.html,$(wildcard *.txt))
|
|
|
|
all: $(HTML)
|
|
|
|
# when each target of a multi-target rule has its own prereq
|
|
# we use a static pattern rule.
|
|
$(HTML): %.html: %.txt
|
|
asciidoc -a toc2 $<
|
|
|
|
TMP=/tmp/tpl-gh-pages
|
|
stage:
|
|
mkdir -p ${TMP}
|
|
rm -if ${TMP}/*
|
|
cp *.html *.css *.png ${TMP}
|
|
|
|
|