Skip to content
Snippets Groups Projects
Commit 69c37ced authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Added minifying target to Makefile

parent a005314a
No related branches found
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment