◊(Local Yarn Code "Check-in [6b973e56]")

Overview
Comment:makefile: better spritz, don't include templates in tidy
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6b973e56645d27379db6c1fe4ccbe2f2b1d6418842cd94e318598441fc7d0e7c
User & Date: joel on 2019-06-09 16:23:32
Other Links: manifest | tags
Context
2019-06-09
16:29
HTML5 deprecates <strike> tag, use CSS instead check-in: 416a63d7 user: joel tags: trunk
16:23
makefile: better spritz, don't include templates in tidy check-in: 6b973e56 user: joel tags: trunk
15:54
Be smarter about author URLs in notes check-in: 90c1e5ff user: joel tags: trunk
Changes

Modified makefile from [3aa9dee6] to [aa8d4f57].

27
28
29
30
31
32
33

34
35
36
37
38
39
40
# 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

	tidy -quiet -modify -indent --wrap 100 --tidy-mark no articles/*.html || true
	tidy -quiet -modify -indent --wrap 100 --tidy-mark no series/*.html || true
	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.







>







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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
	rm -f template.html series/template.html
	tidy -quiet -modify -indent --wrap 100 --tidy-mark no articles/*.html || true
	tidy -quiet -modify -indent --wrap 100 --tidy-mark no series/*.html || true
	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.
54
55
56
57
58
59
60
61

62
63
64
65
66
67
68
69
70
	racket -tm blog.rkt
	tidy -quiet -modify -indent --wrap 100 --tidy-mark no blog*.html || true

keyword-index.html: $(core-files) $(html-deps) $(articles-html) keyword-index.rkt
	racket -tm keyword-index.rkt
	tidy -quiet -modify -indent --wrap 100 --tidy-mark no $@ || true

spritz: ## Clear Pollen and Scribble cache

	rm -rf compiled code-docs/compiled articles/compiled series/compiled
	fossil clean code-docs/

publish: check-env
publish: ## Sync all HTML and PDF stuff to the public web server (does not rebuild any files)
	raco pollen publish
	./util/relativize ~/Desktop/publish/
	rsync -av ~/Desktop/publish/ -e 'ssh -p $(WEB_SRV_PORT)' $(LOCALYARN_SRV) \
		--delete \







|
>
|
<







55
56
57
58
59
60
61
62
63
64

65
66
67
68
69
70
71
	racket -tm blog.rkt
	tidy -quiet -modify -indent --wrap 100 --tidy-mark no blog*.html || true

keyword-index.html: $(core-files) $(html-deps) $(articles-html) keyword-index.rkt
	racket -tm keyword-index.rkt
	tidy -quiet -modify -indent --wrap 100 --tidy-mark no $@ || true

spritz: ## Clear Pollen and Scribble cache, and remove all HTML output
	raco pollen reset
	rm -f *.html articles/*.html series/*.html _article_htmls.mark


publish: check-env
publish: ## Sync all HTML and PDF stuff to the public web server (does not rebuild any files)
	raco pollen publish
	./util/relativize ~/Desktop/publish/
	rsync -av ~/Desktop/publish/ -e 'ssh -p $(WEB_SRV_PORT)' $(LOCALYARN_SRV) \
		--delete \