Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkoyun committed Apr 9, 2020
1 parent c7cbe1f commit e1465cd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 31 deletions.
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ tmp/help.txt: drone-cache
$(ROOT_DIR)/drone-cache --help &> tmp/help.txt

tmp/make_help.txt: Makefile
mkdir -p tmp
make help &> tmp/make_help.txt
-mkdir -p tmp
fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'| column -s: -t &> tmp/make_help.txt

README.md: tmp/help.txt tmp/make_help.txt $(EMBEDMD_BIN)
$(EMBEDMD_BIN) -w README.md
Expand Down Expand Up @@ -167,11 +167,7 @@ format: ; $(info $(M) running format )

.PHONY: help
help: ## Shows this help message
$(Q) echo 'usage: make [target] ...'
$(Q) echo
$(Q) echo 'targets : '
$(Q) echo
$(Q) fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'| column -s: -t
$(Q) awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)

# Dependencies

Expand Down
46 changes: 22 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ USAGE:
drone-cache [global options] command [command options] [arguments...]
VERSION:
v1.1.0-rc0-dirty
v1.1.0-rc0-5-gd70a765-dirty
COMMANDS:
help, h Shows a list of commands or help for one command
Expand Down Expand Up @@ -220,29 +220,27 @@ $ docker run --rm \

[embedmd]:# (tmp/make_help.txt)
```txt
usage: make [target] ...
targets :
setup Setups dev environment
drone-cache Runs drone-cache target
build Runs build target
release Release dron-cache
snapshot Creates snapshot release without publishing it
clean Cleans build resourcess
docs Generates docs
vendor Updates vendored copy of dependencies
compress Creates compressed binary
container Builds drone-cache docker image with latest tag
container-push Pushes latest $(DOCKER_REPO) image to repository
test Runs tests
test-integration Runs integration tests
test-unit Runs unit tests
test-e2e Runs e2e tests
lint Runs golangci-lint analysis
fix Runs golangci-lint fix
format Runs gofmt
help Shows this help message
setup Setups dev environment
drone-cache Runs drone-cache target
build Runs build target
release Release dron-cache
snapshot Creates snapshot release without publishing it
clean Cleans build resourcess
docs Generates docs
generate Generate documentation, website and yaml files,
vendor Updates vendored copy of dependencies
compress Creates compressed binary
container Builds drone-cache docker image with latest tag
container-push Pushes latest $(DOCKER_REPO) image to repository
test Runs tests
test-integration Runs integration tests
test-unit Runs unit tests
test-e2e Runs e2e tests
lint Runs golangci-lint analysis
fix Runs golangci-lint fix
format Runs gofmt
help Shows this help message
$(Q) awk 'BEGIN {FS = " .*"; printf "\nUsage \n make \033[36m<target>\033[0m\n\nTargets \n"} /^[a-zA-Z_-]+ .*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
```

## Releases
Expand Down

0 comments on commit e1465cd

Please sign in to comment.