forked from mr-provisioner/mr-provisioner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (36 loc) · 731 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
APP_DIR=mr_provisioner
FRONTEND_DIR=$(APP_DIR)/admin/ui
DOCS_DIR=docs
APIDOCS_DIR=$(DOCS_DIR)/apidocs
TEST_CONFIG?=
PYTEST_ARGS?=
.PHONY: frontend
frontend:
make -C $(FRONTEND_DIR)
.PHONY: frontend-dev
frontend-dev:
make -C $(FRONTEND_DIR) dev
.PHONY: frontend-watch-dev
frontend-watch-dev:
make -C $(FRONTEND_DIR) watch-dev
.PHONY: frontend-clean
frontend-clean:
make -C $(FRONTEND_DIR) clean
.PHONY: frontend-lint
frontend-lint:
make -C $(FRONTEND_DIR) lint
.PHONY: lint
lint:
flake8 $(APP_DIR) --exclude node_modules
.PHONY: apidocs
apidocs:
make -C $(APIDOCS_DIR) html
.PHONY: docs
docs: apidocs
make -C $(DOCS_DIR) html
.PHONY: dist
dist: frontend
./setup.py sdist
.PHONY: test
test:
pytest $(PYTEST_ARGS)