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