ffbuild: correctly silence and tag new css/html steps
Reviewed-by: softworkz <softworkz@hotmail.com>
This commit is contained in:
parent
4cb42551d4
commit
af94383124
@ -140,9 +140,9 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# 1) Preprocess CSS to a minified version
|
# 1) Preprocess CSS to a minified version
|
||||||
|
%.css.min: TAG = SED
|
||||||
%.css.min: %.css
|
%.css.min: %.css
|
||||||
# Must start with a tab in the real Makefile
|
$(M)sed 's!/\\*.*\\*/!!g' $< \
|
||||||
sed 's!/\\*.*\\*/!!g' $< \
|
|
||||||
| tr '\n' ' ' \
|
| tr '\n' ' ' \
|
||||||
| tr -s ' ' \
|
| tr -s ' ' \
|
||||||
| sed 's/^ //; s/ $$//' \
|
| sed 's/^ //; s/ $$//' \
|
||||||
@ -151,6 +151,7 @@ endif
|
|||||||
ifdef CONFIG_RESOURCE_COMPRESSION
|
ifdef CONFIG_RESOURCE_COMPRESSION
|
||||||
|
|
||||||
# 2) Gzip the minified CSS
|
# 2) Gzip the minified CSS
|
||||||
|
%.css.min.gz: TAG = GZIP
|
||||||
%.css.min.gz: %.css.min
|
%.css.min.gz: %.css.min
|
||||||
$(M)gzip -nc9 $< > $@
|
$(M)gzip -nc9 $< > $@
|
||||||
|
|
||||||
@ -159,6 +160,7 @@ ifdef CONFIG_RESOURCE_COMPRESSION
|
|||||||
$(BIN2C) $< $@ $(subst .,_,$(basename $(notdir $@)))
|
$(BIN2C) $< $@ $(subst .,_,$(basename $(notdir $@)))
|
||||||
|
|
||||||
# 4) Gzip the HTML file (no minification needed)
|
# 4) Gzip the HTML file (no minification needed)
|
||||||
|
%.html.gz: TAG = GZIP
|
||||||
%.html.gz: %.html
|
%.html.gz: %.html
|
||||||
$(M)gzip -nc9 $< > $@
|
$(M)gzip -nc9 $< > $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user