Commit 69c37ced authored by Taddeus Kroes's avatar Taddeus Kroes

Added minifying target to Makefile

parent a005314a
ALL := style.css guide.js settings.js
SCRIPTS := guide.js settings.js
STYLES := style.css
.PHONY: all clean
ALL := $(SCRIPTS) $(STYLES)
.PHONY: all min clean
all: $(ALL)
......@@ -10,5 +13,17 @@ all: $(ALL)
%.css: %.sass
sass $< $@
min: $(patsubst %,%.min,$(ALL))
@for s in $(ALL); do \
echo "$$s.min -> $$s"; \
mv $$s.min $$s; \
done
%.js.min: %.js
closure-compiler --js $< --js_output_file $@
%.css.min: %.css
curl -X POST -s --data-urlencode input@$< http://cssminifier.com/raw > $@
clean:
rm -f $(ALL)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment