Files
usb-server/Makefile
T
Stefan Hacker 5464e553b3 first commit
2026-02-18 22:01:54 +01:00

25 lines
476 B
Makefile

.PHONY: all relay client client-windows clean
GOOS ?= linux
GOARCH ?= amd64
all: relay client
relay:
CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/usb-relay ./cmd/usb-relay/
client:
CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/usb-client ./cmd/usb-client/
client-windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o bin/usb-client.exe ./cmd/usb-client/
docker:
docker compose build
docker-run:
docker compose up -d
clean:
rm -rf bin/