bottin/Makefile

20 lines
414 B
Makefile
Raw Normal View History

2020-02-10 10:54:36 +00:00
BIN=bottin
SRC=main.go ssha.go util.go acl.go read.go write.go
DOCKER=lxpz/bottin_amd64
2020-02-10 10:54:36 +00:00
all: $(BIN)
$(BIN): $(SRC)
go get -d -v
2020-02-10 10:54:36 +00:00
go build -v -o $(BIN)
2020-02-10 10:54:36 +00:00
$(BIN).static: $(SRC)
2020-01-26 21:30:05 +00:00
go get -d -v
2020-02-10 10:54:36 +00:00
CGO_ENABLED=0 GOOS=linux go build -a -v -o $(BIN).static
2020-01-26 21:30:05 +00:00
2020-02-10 10:54:36 +00:00
docker: $(BIN).static
docker build -t $(DOCKER):$(TAG) .
docker push $(DOCKER):$(TAG)
docker tag $(DOCKER):$(TAG) $(DOCKER):latest
docker push $(DOCKER):latest