-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
47 lines (34 loc) · 948 Bytes
/
Copy pathmakefile
File metadata and controls
47 lines (34 loc) · 948 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
## makefile automates the build and deployment for python projects
## Build system
#
PROJ_TYPE = python
PROJ_MODULES = python/doc python/package python/deploy
PY_TEST_ALL_TARGETS += testexamples
CLEAN_ALL_DEPS += cleanexamples
## Project
#
EXAMPLE_DIR = example
#PY_TEST_GLOB = test_labeler.py
#PY_TEST_GLOB = test_multidoc.py
## Targets
#
include ./zenbuild/main.mk
## Targets
#
# clean example output
.PHONY: cleanexamples
cleanexamples:
@export PYTHONPATH="${HOME}/view/reslib/deepnlp" ; \
$(MAKE) $(PY_MAKE_ARGS) pytestrun \
ARG="for i in $(EXAMPLE_DIR)/* ; \
do ( cd \$$\$$i ; ./harness.py clean ) ; \
done"
# unit and integration tests
.PHONY: testexamples
testexamples:
@export PYTHONPATH="${HOME}/view/reslib/deepnlp" ; \
$(MAKE) $(PY_MAKE_ARGS) pytestrun \
ARG="for i in $(EXAMPLE_DIR)/* ; \
do ( cd \$$\$$i ; ./harness.py clean ; \
./harness.py traintest ) ; \
done"