diff --git a/Makefile b/Makefile index c6424e0..4f6c609 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ dep: ## Get the dependencies @go get -v -d ./... build: dep ## Build the binary file - @go build -i -v $(PKG) + @go build -i -v $(PKG)/cmd/dnsupdater clean: ## Remove previous build @rm -f $(PROJECT_NAME) diff --git a/cmd/dnsupdater/main.go b/cmd/dnsupdater/main.go index d239e15..e6b3135 100644 --- a/cmd/dnsupdater/main.go +++ b/cmd/dnsupdater/main.go @@ -9,12 +9,10 @@ import ( "path" "time" - "gitlab.lehouerou.net/laurent/dnsupdater/internal/outboundip/ddwrt" - - "gitlab.lehouerou.net/laurent/dnsupdater/internal/outboundip" - "gitlab.lehouerou.net/laurent/dnsupdater/internal/config" "gitlab.lehouerou.net/laurent/dnsupdater/internal/dns/gandi" + "gitlab.lehouerou.net/laurent/dnsupdater/internal/outboundip" + "gitlab.lehouerou.net/laurent/dnsupdater/internal/outboundip/ddwrt" "golang.org/x/xerrors" @@ -24,7 +22,6 @@ import ( "github.com/dghubble/sling" "github.com/matryer/try" "github.com/urfave/cli" - "gopkg.in/gomail.v2" ) var (