-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (38 loc) · 1.02 KB
/
Makefile
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
.DEFAULT_GOAL := help
.TESTS_DIR := tests
.REPORTS_DIR := reports
.PACKAGE_NAME := waldiez
.PHONY: help
help:
@echo "Usage: make [target]"
@echo ""
@echo "Default target: help"
@echo ""
@echo "Targets:"
@echo " help Show this message and exit"
@echo " format Format the code"
@echo " lint Lint the code"
@echo " forlint Alias for 'make format && make lint'"
@echo " clean Clean unnecessary files"
@echo " docs Generate the documentation"
@echo " docs-live Generate the documentation in 'live' mode"
@echo ""
.PHONY: format
format:
python scripts/format.py
.PHONY: lint
lint:
python scripts/lint.py
.PHONY: forlint
forlint: format lint
.PHONY: clean
clean:
python scripts/clean.py
.PHONY: docs
docs:
python -m mkdocs build -d site
@echo "open: file://`pwd`/site/index.html"
@echo "or use: \`python -m http.server --directory site\`"
.PHONY: docs-live
docs-live:
python -m mkdocs serve --watch mkdocs.yaml --watch src --dev-addr localhost:8400