Refactor Makefile
This commit is contained in:
parent
4426c889fd
commit
9118a00aeb
12
Makefile
12
Makefile
|
@ -1,15 +1,15 @@
|
||||||
.PHONY: release demo clean
|
.PHONY: release build demo clean
|
||||||
|
|
||||||
demo:
|
build: clean
|
||||||
mkdir -p demo/themes/hugo-coder
|
mkdir -p demo/themes/hugo-coder
|
||||||
rsync -av exampleSite/ demo
|
rsync -av exampleSite/ demo
|
||||||
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder
|
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder
|
||||||
|
|
||||||
|
demo: build
|
||||||
|
|
||||||
cd demo && ./hugow serve -D
|
cd demo && ./hugow serve -D
|
||||||
|
|
||||||
release:
|
release: build
|
||||||
mkdir -p demo/themes/hugo-coder
|
|
||||||
rsync -av exampleSite/ demo
|
|
||||||
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder
|
|
||||||
cd ./demo && ./hugow
|
cd ./demo && ./hugow
|
||||||
rm -rf ./resources && cp -r ./demo/resources ./resources
|
rm -rf ./resources && cp -r ./demo/resources ./resources
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue