hugo-coder-fork/Makefile

19 lines
406 B
Makefile

.PHONY: prepare release build demo clean
build: prepare
./hugow --source demo
demo: prepare
./hugow 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