Fix up Makefile and main.go for file moves

This commit is contained in:
Michael Bridgen committed 2014-10-04 15:23:32 +01:00
1 parent 3976e5ceaf
commit bc5bbd349a
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -1,18 +1,18 @@
IMAGE:=/tmp/weavedns.tar
MAIN:=../main
MAIN:=../
.DEFAULT: docker-image
all: docker-image
dns: ../*.go ../main/main.go
go get $(MAIN) && GOARCH=amd64 GOOS=linux go build -o weavedns -v $(MAIN)
weavedns: ../server/*.go ../main.go
go get $(MAIN) && GOARCH=amd64 GOOS=linux go build -o $@ -v $(MAIN)
.PHONY: docker-image
docker-image: $(IMAGE)
$(IMAGE): Dockerfile dns
$(IMAGE): Dockerfile weavedns
sudo -E docker build -t zettio/weavedns .
sudo -E docker save zettio/weavedns > $(IMAGE)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"flag"
"fmt"
"github.com/miekg/dns"
"github.com/zettio/weavedns"
"github.com/zettio/weavedns/server"
"log"
"net"
)