hugo-coder-fork/Makefile

23 lines
548 B
Makefile
Raw Normal View History

2018-03-23 19:49:06 +00:00
LESS_DIR = ./static/less
LESS_FILE = style.less
CSS_DIR = ./static/css
CSS_FILE = style.min.css
CSS_TMP_FILE = tmp.css
2018-05-28 00:38:01 +00:00
.PHONY: clean demo build
2018-03-23 19:49:06 +00:00
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)
demo: build
2018-05-28 00:38:01 +00:00
mkdir -p demo/themes/coder
rsync -av exampleSite/* demo
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/coder
cd demo && hugo serve -D
2018-03-23 19:49:06 +00:00
clean:
rm -f $(CSS_DIR)/*.css
2018-05-28 00:38:01 +00:00
rm -rf demo