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

Artem Khvastunov
07.26.2019 3d4335a7879180b12ea34dfc9fba0d76fd5700ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
HUGO_BIN=hugo
 
.PHONY: prepare release build demo clean
 
build: prepare
    $(HUGO_BIN) --source demo
 
demo: prepare
    $(HUGO_BIN) server --buildDrafts --source demo
 
release: build
    rm -rf ./resources && cp -r ./demo/resources ./resources
 
prepare: clean
    mkdir -p demo/themes/hugo-coder
    rsync -av exampleSite/ demo
    rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder
 
clean:
    rm -rf demo