summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d84b561..bec4677 100644
--- a/Makefile
+++ b/Makefile
@@ -112,11 +112,15 @@ out/%.xml: content/%.md .cache/meta/%.json $(FEED_TEMPLATES_SRC) metadata/*.yaml
112 $(PANDOC_FILTERS) \ 112 $(PANDOC_FILTERS) \
113 -o "$@" "$<" 113 -o "$@" "$<"
114 114
115out/%: content/% | out 115out/%/thumbnail.png: content/%/thumbnail.png | out
116 $(info [COPY] $< -> $@) 116 $(info [THMB] $< -> $@)
117 117
118 mkdir -p $(@D) 118 convert -thumbnail 360x200^ -gravity center -extent 360x200 "$<" png:- | pngquant -o "$@" -
119 cp "$<" "$@" 119
120out/%/thumbnail.jpg: content/%/thumbnail.jpg | out
121 $(info [THMB] $< -> $@)
122
123 convert -thumbnail 360x200^ -gravity center -extent 360x200 "$<" ppm:- | cjpeg -quality 80 > "$@"
120 124
121out/%.woff2: assets/fonts/%.ttf assets/fonts/glyphs.txt | out 125out/%.woff2: assets/fonts/%.ttf assets/fonts/glyphs.txt | out
122 $(info [FONT] $< -> $@) 126 $(info [FONT] $< -> $@)
@@ -132,6 +136,12 @@ out/%.css: assets/css/%.scss $(CSS_SRC) | out
132 136
133 sass "$<" | ./node_modules/.bin/postcss --use postcss-csso autoprefixer --no-map > "$@" 137 sass "$<" | ./node_modules/.bin/postcss --use postcss-csso autoprefixer --no-map > "$@"
134 138
139out/%: content/% | out
140 $(info [COPY] $< -> $@)
141
142 mkdir -p $(@D)
143 cp "$<" "$@"
144
135.cache/meta: | .cache 145.cache/meta: | .cache
136 mkdir -p .cache/meta 146 mkdir -p .cache/meta
137 147