diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
| @@ -34,7 +34,6 @@ feed_files: $(FEED_FILES) | |||
| 34 | static_files: $(STATIC_FILES) | 34 | static_files: $(STATIC_FILES) |
| 35 | font_files: $(FONT_FILES) | 35 | font_files: $(FONT_FILES) |
| 36 | css_files: $(CSS_FILES) | 36 | css_files: $(CSS_FILES) |
| 37 | icons: out/icons.svg | ||
| 38 | 37 | ||
| 39 | # | 38 | # |
| 40 | # RULES | 39 | # RULES |
| @@ -141,14 +140,21 @@ out/%.css: assets/css/%.scss $(CSS_SRC) | out | |||
| 141 | 140 | ||
| 142 | sass --load-path=node_modules "$<" | ./node_modules/.bin/postcss --use autoprefixer --no-map -o "$@" | 141 | sass --load-path=node_modules "$<" | ./node_modules/.bin/postcss --use autoprefixer --no-map -o "$@" |
| 143 | 142 | ||
| 144 | out/icons.svg: | out | 143 | out/%: content/% | out |
| 145 | $(info [ICON] $< -> $@) | 144 | $(info [COPY] $< -> $@) |
| 145 | |||
| 146 | mkdir -p $(@D) | ||
| 147 | cp "$<" "$@" | ||
| 148 | |||
| 149 | icons: | out | ||
| 150 | $(info [ICON] out/icons.svg) | ||
| 146 | 151 | ||
| 147 | node ./node_modules/iro-icons/scripts/create_sprite.js \ | 152 | node ./node_modules/iro-icons/scripts/create_sprite.js \ |
| 148 | asterisk \ | 153 | asterisk \ |
| 149 | arrow-left \ | 154 | arrow-left \ |
| 150 | arrow-right \ | 155 | arrow-right \ |
| 151 | arrow-up-right \ | 156 | arrow-up-right \ |
| 157 | shuffle \ | ||
| 152 | envelope \ | 158 | envelope \ |
| 153 | hash \ | 159 | hash \ |
| 154 | messages \ | 160 | messages \ |
| @@ -162,14 +168,7 @@ out/icons.svg: | out | |||
| 162 | x \ | 168 | x \ |
| 163 | chevron-left \ | 169 | chevron-left \ |
| 164 | chevron-right \ | 170 | chevron-right \ |
| 165 | "$@" | 171 | "out/icons.svg" |
| 166 | |||
| 167 | |||
| 168 | out/%: content/% | out | ||
| 169 | $(info [COPY] $< -> $@) | ||
| 170 | |||
| 171 | mkdir -p $(@D) | ||
| 172 | cp "$<" "$@" | ||
| 173 | 172 | ||
| 174 | .cache/meta: | .cache | 173 | .cache/meta: | .cache |
| 175 | mkdir -p .cache/meta | 174 | mkdir -p .cache/meta |
