hugo-coder-fork/Makefile

21 lines
429 B
Makefile
Raw Normal View History

2019-01-02 19:06:58 +00:00
HUGO_BIN=hugo
.PHONY: prepare release build demo clean
2018-06-18 17:55:42 +00:00
build: prepare
2019-01-02 19:06:58 +00:00
$(HUGO_BIN) --source demo
2018-10-04 00:11:07 +00:00
demo: prepare
2019-01-02 19:06:58 +00:00
$(HUGO_BIN) server --buildDrafts --source demo
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
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