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