diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -67,6 +67,7 @@ sources.adoc = $(articles.adoc) $(listings.adoc) $(pages.adoc) sources.htmlbody = $(sources.adoc:.adoc=.htmlbody) sources.html = $(sources.adoc:.adoc=.html) sources.snippets = $(sources.adoc:.adoc=.snippets) +sources.snippets.gz = $(sources.adoc:.adoc=.snippets.gz) sources.conf = $(sources.adoc:.adoc=.conf) articles.indexentry = $(articles.adoc:.adoc=.indexentry) articles.feedentry = $(articles.adoc:.adoc=.feedentry) @@ -118,6 +119,7 @@ derived-assets = \ $(contents.gz) \ $(sources.htmlbody) \ $(sources.snippets) \ + $(sources.snippets.gz) \ $(sources.conf) \ src/global.conf \ $(listings.htmlheader) \ @@ -135,6 +137,7 @@ derived-assets = \ side-assets = \ src/collections/*/*/*/*/*.html.*.txt \ + src/collections/*/*/*/*/*.html.*.txt.gz \ src/collections/*/index.html.*.txt \ src/collections/*/*.sortdata \ src/pages/*/*.html.*.txt \ @@ -165,6 +168,10 @@ $(contents.gz): gzip -9fk $* touch $@ +$(sources.snippets.gz): + if [ -s $* ]; then gzip -9fk `cat $*`; fi + sed 's/$$/.gz/' $* > $@ + src/content/public.asc: gpg --export --armour "`jq -r '.email' < meta.json`" > $@ |