-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (29 loc) · 1.01 KB
/
Makefile
File metadata and controls
35 lines (29 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export GOOS ?= linux
export CGO_ENABLED ?= 0
export GOARCH ?= amd64
# Default build (no tracing)
.PHONY: build
build:
@echo "Building for GOOS=${GOOS}, GOARCH=${GOARCH}, CGO_ENABLED=${CGO_ENABLED}"
go build -v -trimpath -tags tailscale -ldflags="-s -w" .
# Build with tracing support
.PHONY: build-with-trace
build-with-trace:
@echo "Building with trace support for GOOS=${GOOS}, GOARCH=${GOARCH}"
go build -v -trimpath -tags "tailscale,trace" -ldflags="-s -w" .
# reMarkable 2 builds
.PHONY: build-remarkable-2
build-remarkable-2: GOARCH=arm
build-remarkable-2: GOARM=7
build-remarkable-2: build
.PHONY: build-remarkable-2-trace
build-remarkable-2-trace: GOARCH=arm
build-remarkable-2-trace: GOARM=7
build-remarkable-2-trace: build-with-trace
# reMarkable Paper Pro builds
.PHONY: build-remarkable-paper-pro
build-remarkable-paper-pro: GOARCH=arm64
build-remarkable-paper-pro: build
.PHONY: build-remarkable-paper-pro-trace
build-remarkable-paper-pro-trace: GOARCH=arm64
build-remarkable-paper-pro-trace: build-with-trace