garage/Makefile

21 lines
410 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
2020-04-24 10:10:01 +00:00
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build
2020-06-30 15:18:42 +00:00
$(BIN):
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build --release
$(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