hetty/Makefile
2022-02-01 18:12:44 +01:00

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