-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 713 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: docs
EXAMPLES_INCLUDE = '*.as' '*.bck' '*.js' '*.json' '*.mx' '*.out' '*.py' '*.sh' '*.txt' '*.yml'
JAVASCRIPT = $(wildcard src/*/*.js) $(wildcard src/*/x-*/*.js)
all: commands
## commands: show available commands (*)
commands:
@grep -h -E '^##' ${MAKEFILE_LIST} \
| sed -e 's/## //g' \
| column -t -s ':'
## check: run checks on code formatting
check:
@npx standard ${JAVASCRIPT}
## clean: clean up
clean:
@find . -path ./.venv -prune -o -type f -name '*~' -exec rm {} +
## html: check HTML
html:
@mccole check --src . --dst docs
## serve: serve documentation
serve:
python -m http.server -d docs
## site: build documentation
site:
@mccole build --src . --dst docs
@touch docs/.nojekyll