mirror of
https://github.com/dstotijn/hetty
synced 2024-11-22 03:33:03 +00:00
20 lines
No EOL
356 B
Makefile
20 lines
No EOL
356 B
Makefile
export CGO_ENABLED = 0
|
|
export NEXT_TELEMETRY_DISABLED = 1
|
|
|
|
.PHONY: build
|
|
build: build-admin
|
|
go build ./cmd/hetty
|
|
|
|
.PHONY: build-admin
|
|
build-admin:
|
|
cd admin && \
|
|
yarn install --frozen-lockfile && \
|
|
yarn run export && \
|
|
mv dist ../cmd/hetty/admin
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f hetty
|
|
rm -rf ./cmd/hetty/admin
|
|
rm -rf ./admin/dist
|
|
rm -rf ./admin/.next
|