29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
web: ## Rebuild all web content (not PDFs)
# The file article_htmls.mark is a zero-byte file that serves only as a marker. If it is older than
# any of its dependencies (or missing) all of the articles will be rebuilt. Its dependencies are
# also on the Pollen cache watchlist (see pollen.rkt)
_article_htmls.mark: $(core-files) $(html-deps) template.html.p
raco pollen setup articles/
raco pollen render -p -t html articles/*.poly.p
raco pollen setup series/
raco pollen render -p -t html series/*.poly.pm
touch article_htmls.mark
# If the rule for article_htmls.mark was triggered, all the article HTML files will already have
# been re-rendered. (That rule comes before this one in the list of dependencies for "all") But if
# not, any individual files that have been edited will get re-rendered.
$(articles-html): %.html: %.poly.pm
raco pollen render $@
|
|
|
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
web: ## Rebuild all web content (not PDFs)
# The file article_htmls.mark is a zero-byte file that serves only as a marker. If it is older than
# any of its dependencies (or missing) all of the articles will be rebuilt. Its dependencies are
# also on the Pollen cache watchlist (see pollen.rkt)
_article_htmls.mark: $(core-files) $(html-deps) template.html.p
raco pollen setup articles/
raco pollen render -p -t html articles/*.poly.pm
raco pollen setup series/
raco pollen render -p -t html series/*.poly.pm
touch _article_htmls.mark
# If the rule for article_htmls.mark was triggered, all the article HTML files will already have
# been re-rendered. (That rule comes before this one in the list of dependencies for "all") But if
# not, any individual files that have been edited will get re-rendered.
$(articles-html): %.html: %.poly.pm
raco pollen render $@
|