build: makefile: simplify
This commit is contained in:
parent
70a460aede
commit
549c396776
18
Makefile
18
Makefile
|
@ -1,28 +1,18 @@
|
|||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: build
|
||||
build: build-dev
|
||||
all: build-dev
|
||||
|
||||
.PHONY: build-dev
|
||||
build-dev:
|
||||
hugo -D -F
|
||||
HUGO_BASEURL=https://dev.belanyi.fr hugo -D -F
|
||||
|
||||
.PHONY: build-prod
|
||||
build-prod:
|
||||
HUGO_ENV=production hugo
|
||||
HUGO_ENV=production hugo --minify
|
||||
|
||||
.PHONY: serve
|
||||
serve: serve-dev
|
||||
|
||||
.PHONY: serve-dev
|
||||
serve-dev:
|
||||
serve:
|
||||
hugo server -D -F
|
||||
|
||||
.PHONY: serve-prod
|
||||
serve-prod:
|
||||
hugo server
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) -r public
|
||||
|
|
Loading…
Reference in a new issue