Add Makefile to build CSS

This commit is contained in:
Luiz de Prá
2018-03-23 16:49:06 -03:00
parent d3e619ecf9
commit 454ea0146d
3 changed files with 26 additions and 1 deletions

16
Makefile Normal file
View File

@@ -0,0 +1,16 @@
LESS_DIR = ./static/less
LESS_FILE = style.less
CSS_DIR = ./static/css
CSS_FILE = style.min.css
CSS_TMP_FILE = tmp.css
.PHONY: clean build
build: clean
lessc $(LESS_DIR)/$(LESS_FILE) > $(CSS_DIR)/$(CSS_TMP_FILE)
uglifycss $(CSS_DIR)/$(CSS_TMP_FILE) > $(CSS_DIR)/$(CSS_FILE)
rm -f $(CSS_DIR)/$(CSS_TMP_FILE)
clean:
rm -f $(CSS_DIR)/*.css