Files
weave/docker/Makefile
T
Michael Bridgen 5935159d9d Removed cross-compilation bobbins
Cross-compilation isn't working, and it's misleading to suggest it
does by having these here.
2014-10-13 15:43:38 +01:00

22 lines
471 B
Makefile

IMAGE:=/tmp/weavedns.tar
MAIN:=../
.DEFAULT: docker-image
all: docker-image
weavedns: ../server/*.go ../main.go
go get -tags netgo $(MAIN) && go build -tags netgo -ldflags '-linkmode external -extldflags "-static"' -o $@ -v $(MAIN)
.PHONY: docker-image
docker-image: $(IMAGE)
$(IMAGE): Dockerfile weavedns
sudo -E docker build -t zettio/weavedns .
sudo -E docker save zettio/weavedns > $(IMAGE)
clean:
-sudo docker rmi zettio/weavedns
rm -f weavedns $(IMAGE)