2018-10-04 16:06:06 +00:00
|
|
|
.PHONY: prepare release build demo clean
|
2018-06-18 17:55:42 +00:00
|
|
|
|
2018-10-04 16:06:06 +00:00
|
|
|
build: prepare
|
|
|
|
./hugow --source demo
|
2018-10-04 00:11:07 +00:00
|
|
|
|
2018-10-04 16:06:06 +00:00
|
|
|
demo: prepare
|
|
|
|
./hugow server --buildDrafts --source demo
|
2018-05-01 18:59:02 +00:00
|
|
|
|
2018-10-04 00:11:07 +00:00
|
|
|
release: build
|
2018-09-15 12:05:38 +00:00
|
|
|
rm -rf ./resources && cp -r ./demo/resources ./resources
|
2018-09-14 14:08:17 +00:00
|
|
|
|
2018-10-04 16:06:06 +00:00
|
|
|
prepare: clean
|
|
|
|
mkdir -p demo/themes/hugo-coder
|
|
|
|
rsync -av exampleSite/ demo
|
|
|
|
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder
|
|
|
|
|
2018-03-23 19:49:06 +00:00
|
|
|
clean:
|
2018-05-28 00:38:01 +00:00
|
|
|
rm -rf demo
|