Unified · Split
| @@ -140,9 +140,9 @@ else · 139 unmodified lines | |||
| 140 | endif | 140 | endif |
| 141 | 141 | ||
| 142 | # 1) Preprocess CSS to a minified version | 142 | # 1) Preprocess CSS to a minified version |
| 143 | %.css.min: TAG = SED | ||
| 143 | %.css.min: %.css | 144 | %.css.min: %.css |
| 144 | # Must start with a tab in the real Makefile | 145 | $(M)sed 's!/\\*.*\\*/!!g' $< \ |
| 145 | sed 's!/\\*.*\\*/!!g' $< \ | ||
| 146 | | tr '\n' ' ' \ | 146 | | tr '\n' ' ' \ |
| 147 | | tr -s ' ' \ | 147 | | tr -s ' ' \ |
| 148 | | sed 's/^ //; s/ $$//' \ | 148 | | sed 's/^ //; s/ $$//' \ |
| @@ -151,6 +151,7 @@ endif · 2 unmodified lines | |||
| 151 | ifdef CONFIG_RESOURCE_COMPRESSION | 151 | ifdef CONFIG_RESOURCE_COMPRESSION |
| 152 | 152 | ||
| 153 | # 2) Gzip the minified CSS | 153 | # 2) Gzip the minified CSS |
| 154 | %.css.min.gz: TAG = GZIP | ||
| 154 | %.css.min.gz: %.css.min | 155 | %.css.min.gz: %.css.min |
| 155 | $(M)gzip -nc9 $< > $@ | 156 | $(M)gzip -nc9 $< > $@ |
| 156 | 157 | ||
| @@ -159,6 +160,7 @@ ifdef CONFIG_RESOURCE_COMPRESSION · 2 unmodified lines | |||
| 159 | $(BIN2C) $< $@ $(subst .,_,$(basename $(notdir $@))) | 160 | $(BIN2C) $< $@ $(subst .,_,$(basename $(notdir $@))) |
| 160 | 161 | ||
| 161 | # 4) Gzip the HTML file (no minification needed) | 162 | # 4) Gzip the HTML file (no minification needed) |
| 163 | %.html.gz: TAG = GZIP | ||
| 162 | %.html.gz: %.html | 164 | %.html.gz: %.html |
| 163 | $(M)gzip -nc9 $< > $@ | 165 | $(M)gzip -nc9 $< > $@ |
| 164 | 166 | ||