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 CGO_ENABLED = 0
|
||||||
export NEXT_TELEMETRY_DISABLED = 1
|
export NEXT_TELEMETRY_DISABLED = 1
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: build
|
||||||
clean:
|
build: build-admin
|
||||||
rm -f hetty
|
go build ./cmd/hetty
|
||||||
rm -rf ./cmd/hetty/admin
|
|
||||||
rm -rf ./admin/node_modules
|
|
||||||
rm -rf ./admin/dist
|
|
||||||
rm -rf ./admin/.next
|
|
||||||
|
|
||||||
.PHONY: build-admin
|
.PHONY: build-admin
|
||||||
build-admin:
|
build-admin:
|
||||||
|
@ -16,6 +12,9 @@ build-admin:
|
||||||
yarn run export && \
|
yarn run export && \
|
||||||
mv dist ../cmd/hetty/admin
|
mv dist ../cmd/hetty/admin
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: clean
|
||||||
build: build-admin
|
clean:
|
||||||
go build ./cmd/hetty
|
rm -f hetty
|
||||||
|
rm -rf ./cmd/hetty/admin
|
||||||
|
rm -rf ./admin/dist
|
||||||
|
rm -rf ./admin/.next
|
Loading…
Reference in a new issue