summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-26 09:52:34 +0100
committerVolpeon <git@volpeon.ink>2020-12-26 09:52:34 +0100
commit15147ca676f7f77697889b65721540f8b8a813ab (patch)
tree563902c127d644f0f58fd26a901794c585d9c993 /Makefile
parentImproved CSS definitions, more fine-grained content build script (diff)
downloadvolpeon.ink-15147ca676f7f77697889b65721540f8b8a813ab.tar.gz
volpeon.ink-15147ca676f7f77697889b65721540f8b8a813ab.tar.bz2
volpeon.ink-15147ca676f7f77697889b65721540f8b8a813ab.zip
Generate precompressed files, use variables for some nav-related values
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 16 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 5a00cdc..caf9939 100644
--- a/Makefile
+++ b/Makefile
@@ -13,24 +13,33 @@ build_sass: clean
13build_content: clean 13build_content: clean
14 @scripts/build_content.sh 14 @scripts/build_content.sh
15 15
16build: build_fonts build_sass build_content 16build_only: build_fonts build_sass build_content
17# @pigz -R -k -9 -- `find output -type f -iregex '.*\\.\\(css\\|js\\|json\\|html\\|xml\\|txt\\|svg\\|ico\\)'`
18 17
19watch_sass: build 18compress_gz: build_only
19 @echo "[COMPRESS] Gzip"
20 @pigz -R -k -9 -- `find output -type f -iregex '.*\\.\\(css\\|js\\|json\\|html\\|xml\\|txt\\|svg\\|ico\\)'`
21
22compress_br: build_only
23 @echo "[COMPRESS] Brotli"
24 @brotli -k -- `find output -type f -iregex '.*\\.\\(css\\|js\\|json\\|html\\|xml\\|txt\\|svg\\|ico\\|woff\\)'`
25
26build: compress_gz compress_br
27
28watch_sass: build_only
20 @scripts/watch_sass.sh 29 @scripts/watch_sass.sh
21 30
22watch_content: build 31watch_content: build_only
23 @scripts/watch_content.sh 32 @scripts/watch_content.sh
24 33
25watch_templates: build 34watch_templates: build_only
26 @scripts/watch_templates.sh 35 @scripts/watch_templates.sh
27 36
28watch_metadata: build 37watch_metadata: build_only
29 @scripts/watch_metadata.sh 38 @scripts/watch_metadata.sh
30 39
31watch: watch_sass watch_content watch_templates watch_metadata 40watch: watch_sass watch_content watch_templates watch_metadata
32 41
33serve_only: build 42serve_only: build_only
34 @python -m http.server --bind 127.0.0.1 --directory output 43 @python -m http.server --bind 127.0.0.1 --directory output
35 44
36serve: watch serve_only 45serve: watch serve_only