go-binary-size/app/Makefile

16 lines
416 B
Makefile
Raw Normal View History

2024-04-03 00:55:22 +02:00
.PHONY: build
build:
2024-04-03 21:50:47 +02:00
mkdir -p ./dist
2024-04-03 01:12:50 +02:00
GOARCH=amd64 GOOS=darwin go build -o ./dist/a ./a
GOARCH=amd64 GOOS=darwin go build -o ./dist/a2 ./a2
GOARCH=amd64 GOOS=darwin go build -o ./dist/b ./b
GOARCH=amd64 GOOS=darwin go build -o ./dist/control ./control
2024-04-03 21:50:47 +02:00
.PHONY: deptree
deptree:
mkdir -p ./deptree
depth ./a > ./deptree/a
depth ./a2 > ./deptree/a2
depth ./b > ./deptree/b
depth ./control > ./deptree/control