SRC_DIR=./src UI_DIR=./ui VERSION=$(shell git tag --sort=-version:refname | head -n 1) setup: cd ${UI_DIR} && pnpm install test: go test -v ./src/... build-ui: cd ${UI_DIR} && VITE_VERSION=${VERSION} pnpm run build build-server: go build -tags prod -ldflags "-s -w -X code.thetadev.de/TSGRain/SEBRAUC/src/util.version=${VERSION}" -o build/sebrauc ./src/. build: build-ui build-server generate-apiclient: openapi-generator generate -i openapi.yml -g typescript-axios -o ${UI_DIR}/src/sebrauc-client -p "supportsES6=true" clean: rm -f build/* rm -rf ${UI_DIR}/dist/**