garage/Makefile

20 lines
531 B
Makefile
Raw Normal View History

2020-06-30 15:18:42 +00:00
BIN=target/release/garage
DOCKER=lxpz/garage_amd64
all:
2021-03-19 11:19:40 +00:00
clear; RUSTFLAGS="-C link-arg=-fuse-ld=lld -C target-cpu=x86-64 -C target-feature=+sse2" cargo build --no-default-features
2020-06-30 15:18:42 +00:00
$(BIN):
2021-03-19 11:19:40 +00:00
RUSTFLAGS="-C link-arg=-fuse-ld=lld -C target-cpu=x86-64 -C target-feature=+sse2" cargo build --release --no-default-features
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