aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: 26734d22c9d22f5dd99dc1951666ce12f7cc8541 (plain) (tree)
1
2
3
4


                                       
 














                                                                
BIN=guichet
SRC=main.go ssha.go profile.go admin.go
DOCKER=lxpz/guichet_amd64

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