move main.go to cmd folder. (#292)
* move main.go to cmd folder. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * move docs. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
550348c2e7
commit
77ea50f062
10
Makefile
10
Makefile
|
@ -93,7 +93,7 @@ unconvert:
|
||||||
|
|
||||||
# Install from source.
|
# Install from source.
|
||||||
install: $(SOURCES)
|
install: $(SOURCES)
|
||||||
$(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'
|
$(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' github.com/appleboy/gorush/cmd
|
||||||
@echo "==> Installed gorush ${GOPATH}/bin/gorush"
|
@echo "==> Installed gorush ${GOPATH}/bin/gorush"
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ build: $(EXECUTABLE)
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
$(EXECUTABLE): $(SOURCES)
|
$(EXECUTABLE): $(SOURCES)
|
||||||
$(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o bin/$@
|
$(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o bin/$@ github.com/appleboy/gorush/cmd
|
||||||
|
|
||||||
.PHONY: misspell-check
|
.PHONY: misspell-check
|
||||||
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;)
|
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
|
||||||
|
|
||||||
docker_build:
|
docker_build:
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO) build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE)
|
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
|
||||||
|
|
||||||
docker_build_arm64:
|
docker_build_arm64:
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(GO) build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE)-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
|
||||||
|
|
||||||
docker_build_arm:
|
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
|
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
|
||||||
|
|
||||||
docker_image:
|
docker_image:
|
||||||
docker build -t $(DEPLOY_ACCOUNT)/$(DEPLOY_IMAGE) -f Dockerfile .
|
docker build -t $(DEPLOY_ACCOUNT)/$(DEPLOY_IMAGE) -f Dockerfile .
|
||||||
|
|
|
@ -160,7 +160,7 @@ The pre-compiled binaries can be downloaded from [release page](https://github.c
|
||||||
With `Go` installed
|
With `Go` installed
|
||||||
|
|
||||||
```
|
```
|
||||||
$ go get -u -v github.com/appleboy/gorush
|
$ go get -u -v github.com/appleboy/gorush/cmd
|
||||||
```
|
```
|
||||||
|
|
||||||
On linux
|
On linux
|
||||||
|
|
Loading…
Reference in New Issue