diff options
author | Volpeon <git@volpeon.ink> | 2020-12-22 23:13:50 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2020-12-22 23:13:50 +0100 |
commit | 1aeb7cd21f7dba2891ff75b5f4b621d3de0f3ed5 (patch) | |
tree | 0ba60b5f176609578184aabf5f9ac075122cd80d /Makefile | |
parent | Switched from cssnano to csso, added robots.txt, changed output dir (diff) | |
download | volpeon.ink-1aeb7cd21f7dba2891ff75b5f4b621d3de0f3ed5.tar.gz volpeon.ink-1aeb7cd21f7dba2891ff75b5f4b621d3de0f3ed5.tar.bz2 volpeon.ink-1aeb7cd21f7dba2891ff75b5f4b621d3de0f3ed5.zip |
Inlined simple scripts in the makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -1,13 +1,23 @@ | |||
1 | all: build | 1 | all: build |
2 | 2 | ||
3 | clean: | 3 | clean: |
4 | @mkdir -p output | ||
4 | @rm -rf output/* | 5 | @rm -rf output/* |
5 | 6 | ||
6 | build_fonts: clean | 7 | build_fonts: clean |
7 | @scripts/build_fonts.sh | 8 | @pyftsubset assets/iosevka-term-ss09-regular.ttf \ |
9 | --text-file='assets/glyphs.txt' \ | ||
10 | --layout-features+=ss09,dlig \ | ||
11 | --flavor='woff2' \ | ||
12 | --output-file='output/iosevka-term-ss09-regular.woff2' | ||
13 | @pyftsubset assets/iosevka-term-ss09-bold.ttf \ | ||
14 | --text-file='assets/glyphs.txt' \ | ||
15 | --layout-features+=ss09,dlig \ | ||
16 | --flavor='woff2' \ | ||
17 | --output-file='output/iosevka-term-ss09-bold.woff2' | ||
8 | 18 | ||
9 | build_sass: clean | 19 | build_sass: clean |
10 | @scripts/build_sass.sh | 20 | @sassc assets/style.scss | node_modules/.bin/csso > output/style.css |
11 | 21 | ||
12 | build_content: clean | 22 | build_content: clean |
13 | @scripts/build_content.sh | 23 | @scripts/build_content.sh |
@@ -16,6 +26,7 @@ copy_static: clean | |||
16 | @cp -r static/* output/ | 26 | @cp -r static/* output/ |
17 | 27 | ||
18 | build: build_fonts build_sass build_content copy_static | 28 | build: build_fonts build_sass build_content copy_static |
29 | # @pigz -R -k -9 -- `find output -type f -iregex '.*\\.\\(css\\|js\\|json\\|html\\|xml\\|txt\\|svg\\|ico\\)'` | ||
19 | 30 | ||
20 | watch_sass: build | 31 | watch_sass: build |
21 | @scripts/watch_sass.sh | 32 | @scripts/watch_sass.sh |
@@ -26,7 +37,7 @@ watch_content: build | |||
26 | watch: watch_sass watch_content | 37 | watch: watch_sass watch_content |
27 | 38 | ||
28 | serve_only: build | 39 | serve_only: build |
29 | @scripts/serve.sh | 40 | @python -m http.server --bind 127.0.0.1 --directory output |
30 | 41 | ||
31 | serve: watch serve_only | 42 | serve: watch serve_only |
32 | 43 | ||