diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -13,24 +13,33 @@ build_sass: clean | |||
13 | build_content: clean | 13 | build_content: clean |
14 | @scripts/build_content.sh | 14 | @scripts/build_content.sh |
15 | 15 | ||
16 | build: build_fonts build_sass build_content | 16 | build_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 | ||
19 | watch_sass: build | 18 | compress_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 | |||
22 | compress_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 | |||
26 | build: compress_gz compress_br | ||
27 | |||
28 | watch_sass: build_only | ||
20 | @scripts/watch_sass.sh | 29 | @scripts/watch_sass.sh |
21 | 30 | ||
22 | watch_content: build | 31 | watch_content: build_only |
23 | @scripts/watch_content.sh | 32 | @scripts/watch_content.sh |
24 | 33 | ||
25 | watch_templates: build | 34 | watch_templates: build_only |
26 | @scripts/watch_templates.sh | 35 | @scripts/watch_templates.sh |
27 | 36 | ||
28 | watch_metadata: build | 37 | watch_metadata: build_only |
29 | @scripts/watch_metadata.sh | 38 | @scripts/watch_metadata.sh |
30 | 39 | ||
31 | watch: watch_sass watch_content watch_templates watch_metadata | 40 | watch: watch_sass watch_content watch_templates watch_metadata |
32 | 41 | ||
33 | serve_only: build | 42 | serve_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 | ||
36 | serve: watch serve_only | 45 | serve: watch serve_only |