mirror of https://github.com/luizdepra/hugo-coder.git

Harry Khanna
11.01.2018 7207be04f0b2a3c4ee3ff27a3fe413a2b9f83f1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
LESS_DIR = ./static/less
LESS_FILE = style.less
CSS_DIR = ./static/css
CSS_FILE = style.min.css
CSS_TMP_FILE = tmp.css
 
.PHONY: clean demo 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)
 
demo: build
    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
 
clean:
    rm -f $(CSS_DIR)/*.css
    rm -rf demo