forked from genice-dev/genice-cage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (44 loc) · 1.64 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
48
49
50
51
52
53
54
.DELETE_ON_ERROR:
GENICE=genice2
BASE=genice2_cage
PACKAGE=genice2-cage
all: README.md
%: temp_% replacer.py $(wildcard $(BASE)/formats/*.py) $(BASE)/__init__.py
pip install genice2-dev
python replacer.py < $< > $@
test: FAU.cage.json.test 1h.cage.gro.test 1h.cage.yap.test CS1.cage.test CS2.cage.json.test CRN1.cage.json.test CRN2.cage.test
CS1.cage: $(BASE)/formats/cage.py Makefile
( cd $(BASE) && $(GENICE) CS1 -r 2 2 2 -f cage[12,14-16:maxring=6] ) > $@
CS2.cage.json: $(BASE)/formats/cage.py Makefile
( cd $(BASE) && $(GENICE) CS2 -f cage[12,14-16:maxring=6:json] ) > $@
CRN1.cage.json: $(BASE)/formats/cage.py Makefile
( cd $(BASE) && $(GENICE) CRN1 -f cage[-12:maxring=8:json] ) > $@
CRN2.cage: $(BASE)/formats/cage.py Makefile
( cd $(BASE) && $(GENICE) CRN2 -f cage[ring=6] ) > $@
1h.cage.yap: $(BASE)/formats/cage.py Makefile
( cd $(BASE) && $(GENICE) 1h -r 2 2 2 -f cage[-5:maxring=6:yaplot] ) > $@
1h.cage.gro: $(BASE)/formats/cage.py Makefile
( cd $(BASE) && $(GENICE) 1h -r 2 2 2 -f cage[-5:maxring=6:gromacs] ) > $@
FAU.cage.json: $(BASE)/formats/cage.py Makefile
( cd $(BASE) && $(GENICE) FAU -r 2 2 2 -f cage[-30:maxring=12:json2] ) > $@
%.test:
make $*
diff $* ref/$*
test-deploy: build
twine upload -r pypitest dist/*
test-install:
pip install --index-url https://test.pypi.org/simple/ $(PACKAGE)
install:
./setup.py install
uninstall:
-pip uninstall -y $(PACKAGE)
build: README.md $(wildcard $(BASE)/formats/*.py)
./setup.py sdist bdist_wheel
deploy: build
twine upload --repository pypi dist/*
check:
./setup.py check
clean:
-rm $(ALL) *~ */*~ *.cage *.json
-rm -rf build dist *.egg-info
-find . -name __pycache__ | xargs rm -rf