forked from disouzam/sql-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial.mk
More file actions
61 lines (52 loc) · 994 Bytes
/
tutorial.mk
File metadata and controls
61 lines (52 loc) · 994 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
SRC := src
OUT := out
PAGE := index.md
## --- : ---
## commands: show available commands
.PHONY: commands
commands:
@grep -h -E '^##' ${MAKEFILE_LIST} | sed -e 's/## //g' | column -t -s ':'
## build: rebuild website
.PHONY: build
build:
@jekyll build
## serve: rebuild and serve website
.PHONY: serve
serve:
@jekyll serve
## template: package template
.PHONY: template
template:
zip -r /tmp/tutorial-template.zip \
CODE_OF_CONDUCT.md \
LICENSE.md \
_config.yml \
_data/colophon.yml \
_includes \
_layouts \
bin/ordered.py \
colophon.md \
conduct_.md \
contributing_.md \
favicon.ico \
license_.md \
misc/tutorial.mk \
res \
-x \*~
## ordered: get all inclusions in order
.PHONY: ordered
ordered:
@python bin/ordered.py < index.md
## style: check Python code style
.PHONY: style
style:
@ruff check .
## reformat: reformat unstylish Python code
.PHONY: reformat
reformat:
@ruff format .
## clean: clean up stray files
.PHONY: clean
clean:
@rm -f *~
@rm -rf _site