Fix default make target

This commit is contained in:
David Stotijn 2022-02-01 18:12:44 +01:00
parent cd5403e353
commit ed394507d3
No known key found for this signature in database
GPG key ID: B23243A9C47CEE2D

View file

@ -1,13 +1,9 @@
export CGO_ENABLED = 0
export NEXT_TELEMETRY_DISABLED = 1
.PHONY: clean
clean:
rm -f hetty
rm -rf ./cmd/hetty/admin
rm -rf ./admin/node_modules
rm -rf ./admin/dist
rm -rf ./admin/.next
.PHONY: build
build: build-admin
go build ./cmd/hetty
.PHONY: build-admin
build-admin:
@ -16,6 +12,9 @@ build-admin:
yarn run export && \
mv dist ../cmd/hetty/admin
.PHONY: build
build: build-admin
go build ./cmd/hetty
.PHONY: clean
clean:
rm -f hetty
rm -rf ./cmd/hetty/admin
rm -rf ./admin/dist
rm -rf ./admin/.next