-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (21 loc) · 927 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: help
help:
@grep -h '##\ [[:alnum:]]' $(MAKEFILE_LIST) | sed -E 's/(.*):.*##(.*)/\1: \2/' | column -s: -t
.PHONY: update-theme
update-theme: ## update the theme
git submodule update --rebase --remote
.PHONY: server
server: ## start the hugo server with drafts enabled
docker run --rm -it -v $$(pwd):/src -p 1313:1313 klakegg/hugo:0.83.1 server --buildDrafts
.PHONY: build_test
build_test: ## build test website
docker run --rm -it -v $$(pwd):/src -p 1313:1313 klakegg/hugo:0.83.1 --cleanDestinationDir --environment test
.PHONY: build
build: ## build website
docker run --rm -it -v $$(pwd):/src -p 1313:1313 klakegg/hugo:0.83.1 --cleanDestinationDir
.PHONY: publish_test
publish_test: build_test ## publish test website
rsync -av --delete public/ netsandbox.de:/var/www/wwwtest.netsandbox.de
.PHONY: publish
publish: build ## publish website
rsync -av --delete public/ netsandbox.de:/var/www/netsandbox.de