build: makefile: simplify

This commit is contained in:
Bruno BELANYI 2021-08-08 16:01:27 +02:00
parent 70a460aede
commit 549c396776

View file

@ -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