From 454ea0146dc6087b9e3b96b4a2f7b66ce1a2f4f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20de=20Pr=C3=A1?= Date: Fri, 23 Mar 2018 16:49:06 -0300 Subject: Add Makefile to build CSS --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4c4b6b9 --- /dev/null +++ b/Makefile @@ -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 -- cgit v1.2.3