gpio-webhook-server/Makefile

14 lines
219 B
Makefile

.PHONY: all build lint clean
all: lint build
lint:
golint ./...
build:
mkdir -p build/
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-w' -o build/gpio-webhook-server ./cmd/server
clean:
rm -rf build/