-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
101 lines (86 loc) · 3.33 KB
/
Makefile
File metadata and controls
101 lines (86 loc) · 3.33 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
PYLINT_ERR_LEVEL=8
html_coverage_dir=.html
xml_coverage_file=coverage-report.xml
xml_report=test-results.xml
pip_install_dir=dist
all: test pylint coverage build
install_dev:
$(MAKE) -C datastore install_dev
$(MAKE) -C cmm install_dev
$(MAKE) -C actsys install_dev
$(MAKE) -C oobrestserver install_dev
$(MAKE) -C oobrestclient install_dev
install:
$(MAKE) -C datastore install
$(MAKE) -C cmm install
$(MAKE) -C actsys install
$(MAKE) -C oobrestserver install
$(MAKE) -C oobrestclient install
uninstall:
$(MAKE) -C datastore uninstall
$(MAKE) -C cmm uninstall
$(MAKE) -C actsys uninstall
$(MAKE) -C oobrestserver uninstall
$(MAKE) -C oobrestclient uninstall
install_requirements:
$(MAKE) -C datastore install_requirements
$(MAKE) -C cmm install_requirements
$(MAKE) -C actsys install_requirements
$(MAKE) -C oobrestserver install_requirements
$(MAKE) -C oobrestclient install_requirements
test: install_requirements
$(MAKE) -C actsys test xml_report=$(xml_report)
$(MAKE) -C datastore test xml_report=$(xml_report)
$(MAKE) -C cmm test xml_report=$(xml_report)
$(MAKE) -C oobrestserver test xml_report=$(xml_report)
$(MAKE) -C oobrestclient test xml_report=$(xml_report)
pylint: install_requirements
$(MAKE) -C actsys pylint PYLINT_ERR_LEVEL=$(PYLINT_ERR_LEVEL)
$(MAKE) -C datastore pylint PYLINT_ERR_LEVEL=$(PYLINT_ERR_LEVEL)
$(MAKE) -C cmm pylint PYLINT_ERR_LEVEL=$(PYLINT_ERR_LEVEL)
$(MAKE) -C oobrestserver pylint PYLINT_ERR_LEVEL=$(PYLINT_ERR_LEVEL)
$(MAKE) -C oobrestclient pylint PYLINT_ERR_LEVEL=$(PYLINT_ERR_LEVEL)
coverage: install_requirements
$(MAKE) -C actsys coverage xml_coverage_file=$(xml_coverage_file) html_coverage_dir=$(html_coverage_dir)
$(MAKE) -C datastore coverage xml_coverage_file=$(xml_coverage_file) html_coverage_dir=$(html_coverage_dir)
$(MAKE) -C cmm coverage xml_coverage_file=$(xml_coverage_file) html_coverage_dir=$(html_coverage_dir)
$(MAKE) -C oobrestserver coverage xml_coverage_file=$(xml_coverage_file) html_coverage_dir=$(html_coverage_dir)
$(MAKE) -C oobrestclient coverage xml_coverage_file=$(xml_coverage_file) html_coverage_dir=$(html_coverage_dir)
rpm:
$(MAKE) -C actsys rpm
$(MAKE) -C datastore rpm
$(MAKE) -C cmm rpm
$(MAKE) -C oobrestserver rpm
$(MAKE) -C oobrestclient rpm
build:
$(MAKE) -C actsys build pip_install_dir=$(pip_install_dir)
$(MAKE) -C datastore build pip_install_dir=$(pip_install_dir)
$(MAKE) -C cmm build pip_install_dir=$(pip_install_dir)
$(MAKE) -C oobrestserver build pip_install_dir=$(pip_install_dir)
$(MAKE) -C oobrestclient build pip_install_dir=$(pip_install_dir)
dist: build
-
clean:
find . -name '*.pyc' -exec rm --force {} +
find . -name '*.pyo' -exec rm --force {} +
find . -name '*~' -exec rm --force {} +
find . -name $(xml_report) -exec rm --force {} +
find . -name $(xml_coverage_file) -exec rm --force {} +
$(MAKE) -C datastore clean
$(MAKE) -C cmm clean
$(MAKE) -C actsys clean
$(MAKE) -C oobrestserver clean
$(MAKE) -C oobrestclient clean
help:
@echo "Supported actions are:"
@echo " build/dist"
@echo " Build this component and put a *.tar.gz, *.rpm and *.whl file in the dist folder."
@echo " test"
@echo " Run a all tests in this project."
@echo " pylint"
@echo " Run a pylint check."
@echo " coverage"
@echo " Perform a coverage analysis."
@echo " clean"
@echo " Clean all compiled files."
.PHONY: test pylint coverage clean rpm build dist