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