Refactor Makefile

This commit is contained in:
Luiz de Prá 2018-10-03 21:11:07 -03:00
parent 4426c889fd
commit 9118a00aeb
1 changed files with 6 additions and 6 deletions

View File

@ -1,15 +1,15 @@
.PHONY: release demo clean
.PHONY: release build demo clean
demo:
build: clean
mkdir -p demo/themes/hugo-coder
rsync -av exampleSite/ demo
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder
demo: build
cd demo && ./hugow serve -D
release:
mkdir -p demo/themes/hugo-coder
rsync -av exampleSite/ demo
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder
release: build
cd ./demo && ./hugow
rm -rf ./resources && cp -r ./demo/resources ./resources