diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 54 |
1 files changed, 30 insertions, 24 deletions
@@ -28,7 +28,7 @@ BASEURL = / .SUFFIXES: .SUFFIXES: .adoc .conf .snippets .indexentry .feedentry .mapentry .sortdata .xml .SUFFIXES: .htmlbody .htmlheader .htmlfooter .htmllisting .html .links .caslinks -.SUFFIXES: .txt .categorydata .gz .torrent .flac .ogg .ps .pdf +.SUFFIXES: .txt .categorydata .gz .torrent .flac .ogg .ps .pdf .sentinel .adoc.conf: mkwb conf src/global.conf $< > $@ @@ -125,6 +125,7 @@ dynamic-contents = \ $(sources.html) \ $(slides.pdf) \ $(feeds.xml) \ + $(sources.media.torrent) \ src/content/sitemap.xml \ static-contents = \ @@ -163,6 +164,13 @@ all-contents = \ $(contents) \ $(contents.gz) \ +captured-assets = \ + src/content/$(PUBURL) \ + src/content/favicon.ico \ + src/content/favicon.png \ + +captured-assets.sentinel = $(captured-assets:=.sentinel) + derived-assets = \ $(dynamic-contents) \ @@ -209,13 +217,7 @@ derived-assets = \ install.txt \ sources.txt \ src/content/.gitignore \ - i18n.sentinel \ - -captured-assets = \ - src/content/$(PUBURL) \ - src/content/favicon.ico \ - src/content/favicon.png \ - $(sources.media.torrent) \ + $(captured-assets.sentinel) \ side-assets = \ src/collections/*/*/*/*/*/*.html.*.txt \ @@ -288,16 +290,19 @@ $(sources.snippets.gz) $(categories.xml.gz): if [ -s $* ]; then gzip -9fk `cat $*`; fi sed 's/$$/.gz/' $* > $@ -src/content/$(PUBURL).gz: src/content/$(PUBURL) -src/content/$(PUBURL): - gpg --export --armour "`jq -r '.email' < meta.json`" > $@ +src/content/$(PUBURL).gz: src/content/$(PUBURL).sentinel +src/content/$(PUBURL).sentinel: email.txt + gpg --export --armour "`cat email.txt`" | ifnew $* + touch $@ -src/content/favicon.ico.gz: src/content/favicon.ico -src/content/favicon.ico: src/content/img/favicon.svg - convert src/content/img/favicon.svg $@ +src/content/favicon.ico.gz: src/content/favicon.ico.sentinel +src/content/favicon.ico.sentinel: src/content/img/favicon.svg + convert src/content/img/favicon.svg -strip ico:- | ifnew $* + touch $@ -src/content/favicon.png: src/content/img/favicon.svg - convert src/content/img/favicon.svg $@ +src/content/favicon.png.sentinel: src/content/img/favicon.svg + convert src/content/img/favicon.svg -strip png:- | ifnew $* + touch $@ $(sources.media.torrent): F="`printf '%s\n' $* | cut -d/ -f3-`" && \ @@ -307,11 +312,11 @@ src/content/sitemap.xml.gz: src/content/sitemap.xml src/content/sitemap.xml: $(sources.mapentry) mkwb sitemap $(sources.mapentry) > $@ -email.txt: meta.json - jq -r '.email' < meta.json > $@ +email.txt: meta.capim + cat meta.capim | awk '$$1 == ":email" && $$0=$$2' | tr -d '"' > $@ -baseurl.txt: meta.json - jq -r '.baseurl' < meta.json > $@ +baseurl.txt: meta.capim + cat meta.capim | awk '$$1 == ":baseurl" && $$0=$$2' | tr -d '"' > $@ fingerprint.txt: src/content/$(PUBURL) gpg --always-trust --no-keyring --show-key --with-colons \ @@ -358,10 +363,6 @@ install.txt: src/install.txt sources.txt install.txt: sed 's|^src/content/||' src/$(@F) > $@ -i18n.sentinel: po/po4a.cfg po/note.txt $(sources.po) $(po4a.in) - po4a po/po4a.cfg - touch $@ - src/sort-expected.txt: @@ -447,6 +448,11 @@ check: check-unit check-integration +i18n: + po4a po/po4a.cfg + + + ## Remove *all* derived artifacts produced during the build. ## A dedicated test asserts that this is always true. clean: |