diff options
author | EuAndreh <eu@euandre.org> | 2025-03-08 15:46:21 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-03-08 15:46:21 -0300 |
commit | 4bf0a6fa42a9adc82e639aa0c9b278b00e528910 (patch) | |
tree | 14f29efb3c49a7748189f445f4b3c1de43a79328 | |
parent | rm long-description (diff) | |
download | euandre.org-4bf0a6fa42a9adc82e639aa0c9b278b00e528910.tar.gz euandre.org-4bf0a6fa42a9adc82e639aa0c9b278b00e528910.tar.xz |
Generate gzipped variation of final output
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 29 | ||||
-rw-r--r-- | deps.mk | 77 | ||||
-rwxr-xr-x | mkdeps.sh | 4 |
4 files changed, 108 insertions, 3 deletions
@@ -13,3 +13,4 @@ index.htmldeps feed.xmldeps feed.xml /src/global.conf +*.gz @@ -25,6 +25,7 @@ LDLIBS = .SUFFIXES: .SUFFIXES: .adoc .conf .snippets .indexentry .feedentry .sortdata .xml .xmldeps .SUFFIXES: .htmlbody .htmlheader .htmlfooter .htmllisting .html +.SUFFIXES: .gz .adoc.conf: mkwb conf src/global.conf $< > $@ @@ -82,7 +83,7 @@ sources = \ $(images.svg) \ src/content/style.css \ -contents = \ +dynamic-contents = \ $(sources.html) \ $(feeds.xml) \ @@ -91,9 +92,28 @@ static-contents = \ $(images.svg) \ src/content/style.css \ +dynamic-contents.gz = $(dynamic-contents:=.gz) -derived-assets = \ +static-contents.gz = \ + $(images.svg:=.gz) \ + src/content/style.css.gz \ + +contents.gz = \ + $(dynamic-contents.gz) \ + $(static-contents.gz) \ + +contents = \ + $(dynamic-contents) \ + $(static-contents) \ + +all-contents = \ $(contents) \ + $(contents.gz) \ + + +derived-assets = \ + $(dynamic-contents) \ + $(contents.gz) \ $(sources.htmlbody) \ $(sources.snippets) \ $(sources.conf) \ @@ -133,6 +153,9 @@ $(listings.html): $(feeds.xml): mkwb feed src/global.conf $*.xmldeps > $@ +$(contents.gz): + gzip -9fk $* + check-unit: @@ -166,7 +189,7 @@ install: all mkdir -p \ '$(DESTDIR)$(SRCDIR)' \ - for f in $(contents) $(static-contents) `cat $(sources.snippets)`; do \ + for f in $(all-contents) `cat $(sources.snippets)`; do \ dir='$(DESTDIR)$(HTMLDIR)'/"`dirname "$${f#src/content/}"`"; \ mkdir -p "$$dir"; \ cp -P "$$f" "$$dir"; \ @@ -242,6 +242,83 @@ src/content/podcasts/index.html: src/content/podcasts/index.conf src/content/pod src/content/screencasts/index.html: src/content/screencasts/index.conf src/content/screencasts/index.htmlbody src/content/tils/index.html: src/content/tils/index.conf src/content/tils/index.htmlbody +src/content/about.html.gz: src/content/about.html +src/content/index.html.gz: src/content/index.html +src/content/blog/2018/07/17/guix-nixos.html.gz: src/content/blog/2018/07/17/guix-nixos.html +src/content/blog/2018/08/01/npm-ci-reproducibility.html.gz: src/content/blog/2018/08/01/npm-ci-reproducibility.html +src/content/blog/2018/12/21/ytdl-subs.html.gz: src/content/blog/2018/12/21/ytdl-subs.html +src/content/blog/2019/06/02/nixos-stateless-workstation.html.gz: src/content/blog/2019/06/02/nixos-stateless-workstation.html +src/content/blog/2020/08/10/guix-srht.html.gz: src/content/blog/2020/08/10/guix-srht.html +src/content/blog/2020/08/31/database-i-with-i-had.html.gz: src/content/blog/2020/08/31/database-i-with-i-had.html +src/content/blog/2020/10/05/cargo2nix.html.gz: src/content/blog/2020/10/05/cargo2nix.html +src/content/blog/2020/10/05/swift2nix.html.gz: src/content/blog/2020/10/05/swift2nix.html +src/content/blog/2020/10/19/feature-flags.html.gz: src/content/blog/2020/10/19/feature-flags.html +src/content/blog/2020/10/20/wrong-interviewing.html.gz: src/content/blog/2020/10/20/wrong-interviewing.html +src/content/blog/2020/11/07/diy-bugs.html.gz: src/content/blog/2020/11/07/diy-bugs.html +src/content/blog/2020/11/08/paradigm-shift-review.html.gz: src/content/blog/2020/11/08/paradigm-shift-review.html +src/content/blog/2020/11/12/database-parsers-trees.html.gz: src/content/blog/2020/11/12/database-parsers-trees.html +src/content/blog/2020/11/14/local-first-review.html.gz: src/content/blog/2020/11/14/local-first-review.html +src/content/blog/2021/01/26/remembering-ann.html.gz: src/content/blog/2021/01/26/remembering-ann.html +src/content/blog/2021/02/17/fallible.html.gz: src/content/blog/2021/02/17/fallible.html +src/content/blog/2021/04/29/relational-review.html.gz: src/content/blog/2021/04/29/relational-review.html +src/content/pastebins/2016/04/05/rpn.html.gz: src/content/pastebins/2016/04/05/rpn.html +src/content/pastebins/2018/07/11/nix-pinning.html.gz: src/content/pastebins/2018/07/11/nix-pinning.html +src/content/pastebins/2018/07/13/guix-nixos-systemd.html.gz: src/content/pastebins/2018/07/13/guix-nixos-systemd.html +src/content/pastebins/2018/07/13/guixbuilder-nixos.html.gz: src/content/pastebins/2018/07/13/guixbuilder-nixos.html +src/content/pastebins/2018/07/13/guixbuilder.html.gz: src/content/pastebins/2018/07/13/guixbuilder.html +src/content/pastebins/2018/07/13/nix-strpad.html.gz: src/content/pastebins/2018/07/13/nix-strpad.html +src/content/pastebins/2018/07/25/nix-exps.html.gz: src/content/pastebins/2018/07/25/nix-exps.html +src/content/pastebins/2018/07/25/nix-showdrv.html.gz: src/content/pastebins/2018/07/25/nix-showdrv.html +src/content/pastebins/2019/06/08/inconsistent-hash.html.gz: src/content/pastebins/2019/06/08/inconsistent-hash.html +src/content/pastebins/2019/12/29/raku-tuple-type.html.gz: src/content/pastebins/2019/12/29/raku-tuple-type.html +src/content/pastebins/2020/01/04/guix-import-failure.html.gz: src/content/pastebins/2020/01/04/guix-import-failure.html +src/content/pastebins/2020/02/14/guix-shebang.html.gz: src/content/pastebins/2020/02/14/guix-shebang.html +src/content/pastebins/2020/11/27/guix-build-local.html.gz: src/content/pastebins/2020/11/27/guix-build-local.html +src/content/pastebins/2020/12/15/guix-pack-fail.html.gz: src/content/pastebins/2020/12/15/guix-pack-fail.html +src/content/pastebins/2021/04/03/naive-slugify-js.html.gz: src/content/pastebins/2021/04/03/naive-slugify-js.html +src/content/pastebins/2021/06/08/reading-session-pt1.html.gz: src/content/pastebins/2021/06/08/reading-session-pt1.html +src/content/pastebins/2021/06/22/curl-wget.html.gz: src/content/pastebins/2021/06/22/curl-wget.html +src/content/pastebins/2021/08/11/h1-spacing.html.gz: src/content/pastebins/2021/08/11/h1-spacing.html +src/content/pastebins/2021/09/02/sicp-3-19.html.gz: src/content/pastebins/2021/09/02/sicp-3-19.html +src/content/pastebins/2021/09/03/sicp-persistent-queue.html.gz: src/content/pastebins/2021/09/03/sicp-persistent-queue.html +src/content/pastebins/2022/07/14/git-cleanup.html.gz: src/content/pastebins/2022/07/14/git-cleanup.html +src/content/pastebins/2023/07/22/funcallable-amop.html.gz: src/content/pastebins/2023/07/22/funcallable-amop.html +src/content/podcasts/2020/12/19/test-entry.html.gz: src/content/podcasts/2020/12/19/test-entry.html +src/content/screencasts/2021/02/07/autoqemu.html.gz: src/content/screencasts/2021/02/07/autoqemu.html +src/content/tils/2020/08/12/filename-timestamp.html.gz: src/content/tils/2020/08/12/filename-timestamp.html +src/content/tils/2020/08/13/code-jekyll.html.gz: src/content/tils/2020/08/13/code-jekyll.html +src/content/tils/2020/08/14/browse-git.html.gz: src/content/tils/2020/08/14/browse-git.html +src/content/tils/2020/08/16/git-search.html.gz: src/content/tils/2020/08/16/git-search.html +src/content/tils/2020/08/28/grep-online.html.gz: src/content/tils/2020/08/28/grep-online.html +src/content/tils/2020/09/04/email-cli-fun-profit.html.gz: src/content/tils/2020/09/04/email-cli-fun-profit.html +src/content/tils/2020/09/05/oldschool-pr.html.gz: src/content/tils/2020/09/05/oldschool-pr.html +src/content/tils/2020/10/11/search-git-history.html.gz: src/content/tils/2020/10/11/search-git-history.html +src/content/tils/2020/11/08/find-broken-symlink.html.gz: src/content/tils/2020/11/08/find-broken-symlink.html +src/content/tils/2020/11/12/diy-nix-bash-ci.html.gz: src/content/tils/2020/11/12/diy-nix-bash-ci.html +src/content/tils/2020/11/12/git-bisect-automation.html.gz: src/content/tils/2020/11/12/git-bisect-automation.html +src/content/tils/2020/11/12/useful-bashvars.html.gz: src/content/tils/2020/11/12/useful-bashvars.html +src/content/tils/2020/11/14/gpodder-media.html.gz: src/content/tils/2020/11/14/gpodder-media.html +src/content/tils/2020/11/30/git-notes-ci.html.gz: src/content/tils/2020/11/30/git-notes-ci.html +src/content/tils/2020/12/15/shellcheck-repo.html.gz: src/content/tils/2020/12/15/shellcheck-repo.html +src/content/tils/2020/12/29/svg.html.gz: src/content/tils/2020/12/29/svg.html +src/content/tils/2021/01/12/curl-awk-emails.html.gz: src/content/tils/2021/01/12/curl-awk-emails.html +src/content/tils/2021/01/17/posix-shebang.html.gz: src/content/tils/2021/01/17/posix-shebang.html +src/content/tils/2021/04/24/cl-generic-precedence.html.gz: src/content/tils/2021/04/24/cl-generic-precedence.html +src/content/tils/2021/04/24/clojure-autocurry.html.gz: src/content/tils/2021/04/24/clojure-autocurry.html +src/content/tils/2021/04/24/scm-nif.html.gz: src/content/tils/2021/04/24/scm-nif.html +src/content/tils/2021/07/23/git-tls-gpg.html.gz: src/content/tils/2021/07/23/git-tls-gpg.html +src/content/tils/2021/08/11/js-bigint-reviver.html.gz: src/content/tils/2021/08/11/js-bigint-reviver.html +src/content/blog/index.html.gz: src/content/blog/index.html +src/content/pastebins/index.html.gz: src/content/pastebins/index.html +src/content/podcasts/index.html.gz: src/content/podcasts/index.html +src/content/screencasts/index.html.gz: src/content/screencasts/index.html +src/content/tils/index.html.gz: src/content/tils/index.html +src/content/blog/feed.xml.gz: src/content/blog/feed.xml +src/content/pastebins/feed.xml.gz: src/content/pastebins/feed.xml +src/content/podcasts/feed.xml.gz: src/content/podcasts/feed.xml +src/content/screencasts/feed.xml.gz: src/content/screencasts/feed.xml +src/content/tils/feed.xml.gz: src/content/tils/feed.xml + src/content/blog/2018/07/17/guix-nixos.feedentry: src/content/blog/2018/07/17/guix-nixos.conf src/content/blog/2018/07/17/guix-nixos.htmlbody src/content/blog/2018/08/01/npm-ci-reproducibility.feedentry: src/content/blog/2018/08/01/npm-ci-reproducibility.conf src/content/blog/2018/08/01/npm-ci-reproducibility.htmlbody src/content/blog/2018/12/21/ytdl-subs.feedentry: src/content/blog/2018/12/21/ytdl-subs.conf src/content/blog/2018/12/21/ytdl-subs.htmlbody @@ -48,6 +48,10 @@ files | sed 's/^\(.*\)\.adoc$/\1.htmlbody\t\1.snippets\t\1.conf:\t\1.adoc/' files | sed 's/^\(.*\)\.adoc$/\1.html:\t\1.conf\t\1.htmlbody/' printf '\n' +files | sed 's/^\(.*\)\.adoc$/\1.html.gz:\t\1.html/' +listings | sed 's|^\(.*\)/index\.adoc$|\1/feed.xml.gz:\t\1/feed.xml|' +printf '\n' + articles | sed 's/^\(.*\)\.adoc$/\1.feedentry:\t\1.conf\t\1.htmlbody/' articles | sed 's/^\(.*\)\.adoc$/\1.sortdata:\t\1.conf/' printf '\n' |