-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
32 lines (22 loc) · 675 Bytes
/
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
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
endif
PDF = true
PDF_AGGREGATOR = true
DEBUG = false
.RECIPEPREFIX = >
.PHONY: install build serve clean fclean re browser
all: build
install:
> poetry install $(ARGS)
browser:
> poetry run playwright install $(if $(FORCE),--force,) --with-deps
build:
>@ MKDOCS_EXPORTER_PDF=$(PDF) MKDOCS_EXPORTER_PDF_AGGREGATOR=$(PDF_AGGREGATOR) poetry run mkdocs build
serve:
>@ MKDOCS_EXPORTER_PDF=$(PDF) MKDOCS_EXPORTER_PDF_AGGREGATOR=$(PDF_AGGREGATOR) poetry run mkdocs serve
clean:
> $(RM) -rf dist/
fclean: clean
> $(RM) -rf .venv/
re: clean all