You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
811 B
26 lines
811 B
FLAGS := -ldflags "-s -w" -trimpath
|
|
NOCGO := CGO_ENABLED=0
|
|
|
|
ci:: build-all
|
|
echo "done"
|
|
|
|
build::
|
|
go vet && go fmt
|
|
${NOCGO} go build ${FLAGS} -o xtfs
|
|
|
|
build-all:: build
|
|
${NOCGO} GOOS=linux GOARCH=amd64 go build ${FLAGS} -o builds/xtfs-linux-x64
|
|
${NOCGO} GOOS=linux GOARCH=arm go build ${FLAGS} -o builds/xtfs-linux-arm
|
|
${NOCGO} GOOS=linux GOARCH=arm64 go build ${FLAGS} -o builds/xtfs-linux-arm64
|
|
${NOCGO} GOOS=darwin GOARCH=amd64 go build ${FLAGS} -o builds/xtfs-mac-x64
|
|
${NOCGO} GOOS=darwin GOARCH=arm64 go build ${FLAGS} -o builds/xtfs-mac-arm64
|
|
${NOCGO} GOOS=windows GOARCH=amd64 go build ${FLAGS} -o builds/xtfs-windows.exe
|
|
sha256sum builds/*
|
|
|
|
clean::
|
|
rm -f xtfs
|
|
rm -f xtfs-linux64
|
|
rm -f xtfs-linux-arm
|
|
rm -f xtfs-linux-arm64
|
|
rm -f xtfs-mac
|
|
rm -f xtfs-windows.exe
|
|
|