mirror of
https://github.com/dstotijn/hetty
synced 2024-11-10 06:04:19 +00:00
21 lines
No EOL
385 B
Makefile
21 lines
No EOL
385 B
Makefile
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-admin
|
|
build-admin:
|
|
cd admin && \
|
|
yarn install --frozen-lockfile && \
|
|
yarn run export && \
|
|
mv dist ../cmd/hetty/admin
|
|
|
|
.PHONY: build
|
|
build: build-admin
|
|
go build ./cmd/hetty
|