-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
48 lines (42 loc) · 1.11 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
43
44
45
46
47
COVERAGE = coverage
BLACK = black
LINTER = flake8
.PHONY: tests
tests:
hython tests/tests.py
.PHONY: coverage
coverage:
hython `which $(COVERAGE)` run --branch --source=soho/python3.7 tests/tests.py
$(COVERAGE) html
.PHONY: lint
lint:
$(BLACK) soho/python2.7/*.py
$(BLACK) soho/python3.7/*.py
$(BLACK) tests/tests.py
$(LINTER) soho/python3.7/*.py
$(LINTER) tests/tests.py
.PHONY: clean
clean:
/bin/rm -fv ./soho/python2.7/*.pyc
/bin/rm -fv ./soho/python3.7/*.pyc
/bin/rm -fvr ./package
/bin/rm -fvr ./tests/tmp
.PHONY: package
package:
/bin/rm -frv package
mkdir -p package/houdini-pbrt-v4
mkdir package/houdini-pbrt-v4/otls
hotl -C otls/pbrt.hda package/houdini-pbrt-v4/otls/pbrt.hda
cp -avL soho package/houdini-pbrt-v4/
rm -fr package/houdini-pbrt-v4/soho/python*/__pycache__
rm -fr package/houdini-pbrt-v4/soho/python*/*.pyc
cp -av vop package/houdini-pbrt-v4/
cp -av houdini-pbrt-v4.json package/
cd package; zip -r houdini-pbrt-v4.zip \
houdini-pbrt-v4/otls/pbrt.hda \
houdini-pbrt-v4/soho \
houdini-pbrt-v4/vop \
houdini-pbrt-v4/examples/*.hip \
houdini-pbrt-v4.json \
-x *.pyc \
-9