aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b96c0a71ab010fc334b7463a8b38331376553f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Build targets for epdctl.

.PHONY: all build arm64 arm preview clean

all: build

build:
	go build -ldflags "-s -w" -o epdctl ./cmd/epdctl

# Cross-compiles for the Pi; copy the result over and run it with sudo.
arm64:
	GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o epdctl-arm64 ./cmd/epdctl

arm:
	GOOS=linux GOARCH=arm GOARM=6 go build -ldflags "-s -w" -o epdctl-arm ./cmd/epdctl

clean:
	rm -f epdctl epdctl-arm epdctl-arm64