30 lines
741 B
Makefile
30 lines
741 B
Makefile
|
output/arm64/probe:
|
||
|
cd probe \
|
||
|
&& GOOS=linux GOARCH=arm64 go build -tags netgo -o ../output/arm64/probe
|
||
|
|
||
|
output/amd64/probe:
|
||
|
cd probe \
|
||
|
&& GOOS=linux GOARCH=amd64 go build -tags netgo -o ../output/amd64/probe
|
||
|
|
||
|
output/arm64/probe-server:
|
||
|
cd probe-server \
|
||
|
&& GOOS=linux GOARCH=arm64 go build -tags netgo -o ../output/arm64/probe-server
|
||
|
|
||
|
output/amd64/probe-server:
|
||
|
cd probe-server \
|
||
|
&& GOOS=linux GOARCH=amd64 go build -tags netgo -o ../output/amd64/probe-server
|
||
|
|
||
|
build-arm64: output/arm64/probe output/arm64/probe-server
|
||
|
|
||
|
build-amd64: output/amd64/probe output/amd64/probe-server
|
||
|
|
||
|
build-all: build-arm64 build-amd64
|
||
|
|
||
|
clean-arm64:
|
||
|
rm -f output/arm64/probe*
|
||
|
|
||
|
clean-amd64:
|
||
|
rm -f output/amd64/probe*
|
||
|
|
||
|
clean-all: clean-arm64 clean-amd64
|