lewtun HF staff commited on
Commit
a6e17f6
1 Parent(s): 815926e

Remove Makefile

Browse files
Files changed (1) hide show
  1. Makefile +0 -75
Makefile DELETED
@@ -1,75 +0,0 @@
1
- .PHONY: style
2
-
3
- #################################################################################
4
- # GLOBALS #
5
- #################################################################################
6
- DETECTED_OS := $(shell uname)
7
-
8
- #################################################################################
9
- # COMMANDS #
10
- #################################################################################
11
-
12
- ## Format code
13
- style:
14
- black --line-length 119 . && isort .
15
-
16
- #################################################################################
17
- # Self Documenting Commands #
18
- #################################################################################
19
-
20
- .DEFAULT_GOAL := help
21
-
22
- # Inspired by <http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html>
23
- # sed script explained:
24
- # /^##/:
25
- # * save line in hold space
26
- # * purge line
27
- # * Loop:
28
- # * append newline + lin to hold space
29
- # * go to next line
30
- # * if line starts with doc comment, strip comment character off and loop
31
- # * remove target prerequisites
32
- # * append hold space (+ newline) to line
33
- # * replace newline plus comments by `---`
34
- # * print line
35
- # Separate expressions are necessary because labels cannot be delimited by
36
- # semicolon; see <http://stackoverflow.com/a/11799865/1968>
37
- .PHONY: help
38
- help:
39
- @echo "$$(tput bold)Available rules:$$(tput sgr0)"
40
- @echo
41
- @sed -n -e "/^## / { \
42
- h; \
43
- s/.*//; \
44
- :doc" \
45
- -e "H; \
46
- n; \
47
- s/^## //; \
48
- t doc" \
49
- -e "s/:.*//; \
50
- G; \
51
- s/\\n## /---/; \
52
- s/\\n/ /g; \
53
- p; \
54
- }" ${MAKEFILE_LIST} \
55
- | LC_ALL='C' sort --ignore-case \
56
- | awk -F '---' \
57
- -v ncol=$$(tput cols) \
58
- -v indent=19 \
59
- -v col_on="$$(tput setaf 6)" \
60
- -v col_off="$$(tput sgr0)" \
61
- '{ \
62
- printf "%s%*s%s ", col_on, -indent, $$1, col_off; \
63
- n = split($$2, words, " "); \
64
- line_length = ncol - indent; \
65
- for (i = 1; i <= n; i++) { \
66
- line_length -= length(words[i]) + 1; \
67
- if (line_length <= 0) { \
68
- line_length = ncol - indent - length(words[i]) - 1; \
69
- printf "\n%*s ", -indent, " "; \
70
- } \
71
- printf "%s ", words[i]; \
72
- } \
73
- printf "\n"; \
74
- }' \
75
- | more $(shell test $(shell uname) = Darwin && echo '--no-init --raw-control-chars')