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
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue