mirror of
https://github.com/dstotijn/hetty
synced 2024-11-10 06:04:19 +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
|