-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
42 lines (36 loc) · 1.12 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
.PHONY: test dist
all:
$(MAKE) dist
$(MAKE) test
$(MAKE) -C examples clean
$(MAKE) -C examples
rm -rf my-suite
PYTHONPATH=. python3 -m nala init my-suite
$(MAKE) -C my-suite NALA="PYTHONPATH=.. python3 -m nala"
test -f my-suite/build/report.json
rm my-suite/build/report.json
! $(MAKE) -C my-suite \
NALA="PYTHONPATH=.. python3 -m nala" \
REPORT_JSON="foo/report.json"
! test -f my-suite/build/report.json
mkdir my-suite/foo
$(MAKE) -C my-suite \
NALA="PYTHONPATH=.. python3 -m nala" \
REPORT_JSON="foo/report.json"
! test -f my-suite/build/report.json
test -f my-suite/foo/report.json
$(MAKE) -C my-suite NALA="PYTHONPATH=.. python3 -m nala" clean
$(MAKE) -C my-suite NALA="PYTHONPATH=.. python3 -m nala" SANITIZE=yes
$(MAKE) -C my-suite NALA="PYTHONPATH=.. python3 -m nala" clean
test: test-python test-c
test-python:
python3 setup.py test
test-c:
$(MAKE) -C tst
dist:
amalgamate/amalgamate.py -c amalgamate/nala.h.json -s .
amalgamate/amalgamate.py -c amalgamate/nala.c.json -s .
release-to-pypi:
python setup.py sdist
python setup.py bdist_wheel --universal
twine upload dist/*.gz dist/*.whl