diff --git a/Makefile b/Makefile index 1f50f63..5880f13 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,7 @@ unconvert: # Install from source. install: $(SOURCES) - $(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' github.com/appleboy/gorush/cmd + $(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' @echo "==> Installed gorush ${GOPATH}/bin/gorush" .PHONY: install @@ -102,7 +102,7 @@ build: $(EXECUTABLE) .PHONY: build $(EXECUTABLE): $(SOURCES) - $(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o bin/$@ github.com/appleboy/gorush/cmd + $(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o bin/$@ .PHONY: misspell-check misspell-check: @@ -173,13 +173,13 @@ release-check: cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;) docker_build: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO) build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE) github.com/appleboy/gorush/cmd + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO) build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE) docker_build_arm64: - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(GO) build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE)-arm64 github.com/appleboy/gorush/cmd + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(GO) build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE)-arm64 docker_build_arm: - CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 $(GO) build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE)-arm github.com/appleboy/gorush/cmd + CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 $(GO) build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE)-arm docker_image: docker build -t $(DEPLOY_ACCOUNT)/$(DEPLOY_IMAGE) -f Dockerfile . diff --git a/README.md b/README.md index 2797eea..fa71786 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ The pre-compiled binaries can be downloaded from [release page](https://github.c With `Go` installed ``` -$ go get -u -v github.com/appleboy/gorush/cmd +$ go get -u -v github.com/appleboy/gorush ``` On linux diff --git a/cmd/doc.go b/doc.go similarity index 100% rename from cmd/doc.go rename to doc.go diff --git a/cmd/main.go b/main.go similarity index 100% rename from cmd/main.go rename to main.go