garage-unix-socket/Makefile

23 lines
448 B
Makefile
Raw Normal View History

2020-06-30 15:18:42 +00:00
BIN=target/release/garage
DOCKER=lxpz/garage_amd64
all:
2020-04-26 20:39:32 +00:00
#cargo fmt || true
#RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build
cargo build
2020-06-30 15:18:42 +00:00
$(BIN):
#RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build --release
cargo build --release
2020-06-30 15:18:42 +00:00
$(BIN).stripped: $(BIN)
cp $^ $@
strip $@
docker: $(BIN).stripped
docker build -t $(DOCKER):$(TAG) .
docker push $(DOCKER):$(TAG)
docker tag $(DOCKER):$(TAG) $(DOCKER):latest
docker push $(DOCKER):latest