guichet/Makefile

20 lines
438 B
Makefile
Raw Permalink Normal View History

2020-02-10 14:26:02 +00:00
BIN=guichet
2021-08-16 14:27:20 +00:00
SRC=main.go ssha.go profile.go admin.go invite.go directory.go picture.go
2020-02-10 14:26:02 +00:00
DOCKER=lxpz/guichet_amd64
2020-02-09 13:46:52 +00:00
2020-02-10 14:26:02 +00:00
all: $(BIN)
$(BIN): $(SRC)
go get -d -v
go build -v -o $(BIN)
$(BIN).static: $(SRC)
go get -d -v
CGO_ENABLED=0 GOOS=linux go build -a -v -o $(BIN).static
docker: $(BIN).static
docker build -t $(DOCKER):$(TAG) .
docker push $(DOCKER):$(TAG)
docker tag $(DOCKER):$(TAG) $(DOCKER):latest
docker push $(DOCKER):latest