build: add Makefile
This commit is contained in:
parent
8d2e4eb52d
commit
5013cb7090
28
Makefile
Normal file
28
Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: build
|
||||
build: build-dev
|
||||
|
||||
.PHONY: build-dev
|
||||
build-dev:
|
||||
hugo -D
|
||||
|
||||
.PHONY: build-prod
|
||||
build-prod:
|
||||
HUGO_ENV=production hugo
|
||||
|
||||
.PHONY: serve
|
||||
serve: serve-dev
|
||||
|
||||
.PHONY: serve-dev
|
||||
serve-dev:
|
||||
hugo server -D
|
||||
|
||||
.PHONY: serve-prod
|
||||
serve-prod:
|
||||
hugo server
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) -r public
|
Loading…
Reference in a new issue