mirror of
https://github.com/dstotijn/hetty
synced 2024-11-10 06:04:19 +00:00
Fix default make target
This commit is contained in:
parent
cd5403e353
commit
ed394507d3
1 changed files with 9 additions and 10 deletions
19
Makefile
19
Makefile
|
@ -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
|
Loading…
Reference in a new issue