forked from dalcinl/igakit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
47 lines (40 loc) · 1.13 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
PYTHON = python$(py)
PACKAGE = igakit
.PHONY: build
build:
$(PYTHON) setup.py build
BACKEND=none
.PHONY: testdemo
testdemo:
$(PYTHON) demo/plot_crv.py $(BACKEND)
$(PYTHON) demo/plot_srf.py $(BACKEND)
$(PYTHON) demo/plot_vol.py $(BACKEND)
$(PYTHON) demo/pipe.py $(BACKEND)
$(PYTHON) demo/bentpipe.py $(BACKEND)
$(PYTHON) demo/unclamp.py $(BACKEND)
$(PYTHON) demo/sweep.py $(BACKEND)
$(PYTHON) demo/ruled.py $(BACKEND)
$(PYTHON) demo/revolve.py $(BACKEND)
$(PYTHON) demo/refine.py $(BACKEND)
.PHONY: unittest
unittest:
$(PYTHON) test/runtests.py
.PHONY: test testall
test: unittest
testall: test testdemo
.PHONY: install
install:
$(PYTHON) setup.py install --prefix='' --user
.PHONY: uninstall
uninstall:
-$(RM) -r $(shell $(PYTHON) -m site --user-site)/$(PACKAGE)
-$(RM) -r $(shell $(PYTHON) -m site --user-site)/$(PACKAGE)-*-py*.egg-info
.PHONY: clean distclean
clean:
$(PYTHON) setup.py -q clean
-$(RM) -r build/src.*
distclean: clean
-$(RM) -r build dist MANIFEST *.py[co]
-$(RM) -r __pycache__ */__pycache__
-find test -name '*.py[co]' -exec rm -f {} ';'
-find $(PACKAGE) -name '*.py[co]' -exec rm -f {} ';'