Skip to content
This repository was archived by the owner on May 20, 2022. It is now read-only.

Commit 99935b5

Browse files
committed
1 parent 4f2fd34 commit 99935b5

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

Makefile

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,8 @@ SHELL = /usr/bin/env bash
66
.PHONY: lint test test-all test-coverage test-coverage-report-console test-coverage-report-html
77
.PHONY: dist upload-release
88

9-
define PRINT_HELP_PYSCRIPT
10-
import re, sys
11-
12-
for line in sys.stdin:
13-
match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
14-
if match:
15-
target, help = match.groups()
16-
print("%-20s %s" % (target, help))
17-
endef
18-
export PRINT_HELP_PYSCRIPT
19-
20-
219
help:
22-
@echo "Read README.md"
23-
@echo ""
24-
@echo "Makefile tasks:"
25-
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
10+
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}'
2611

2712
clean: clean-build clean-pyc clean-test ## remove all build, test, lint, coverage and Python artifacts
2813

0 commit comments

Comments
 (0)