-
Notifications
You must be signed in to change notification settings - Fork 99
/
Makefile.in
96 lines (75 loc) · 2.41 KB
/
Makefile.in
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
-include config.mk
PYTHON ?= python
CLEAN ?= yes
export PATH := ${PATH}:$(PWD)/bin
export PYTHONPATH := $(PYTHONPATH):$(PWD)/src:$(PWD)/test
python_version_full := $(wordlist 2,4,$(subst ., ,$(shell $(PYTHON) --version 2>&1)))
python_version_major := $(word 1,${python_version_full})
python_version_minor := $(word 2,${python_version_full})
python_version_patch := $(word 3,${python_version_full})
all: config.mk
@-mkdir -p test_results
$(PYTHON) setup.py generate_main
$(PYTHON) setup.py build_codes --inplace
framework: config.mk
@-mkdir -p test_results
$(PYTHON) setup.py generate_main
$(PYTHON) setup.py build_libraries --inplace
allinbuild:
$(PYTHON) setup.py build
build:
$(PYTHON) setup.py build
# should pick up prefix from configure?
install:
$(PYTHON) setup.py install
docclean:
make -C doc clean
clean:
$(PYTHON) setup.py clean
$(PYTHON) setup.py clean_codes --inplace
oclean:
$(PYTHON) setup.py clean
distclean:
-rm -f src/amuse/config.mk
-rm -f amuse.sh
-rm -f iamuse.sh
-rm -f ibis-deploy.sh
-rm -f bin/amusifier
-rm -rf test_results src/amuse.egg-info
-rm -f test/*.000 test/fort.* test/perr test/pout test/test.h5 test/*.log
-rm -f test/codes_tests/perr test/codes_tests/pout
-rm -f test/core_tests/plummer_back_100.ini
-rm -f test/test_python_implementation test/twobody
$(PYTHON) setup.py clean
$(PYTHON) setup.py dist_clean
$(PYTHON) setup.py clean_codes --inplace
$(PYTHON) setup.py dist_clean --inplace
make -C doc clean
-find ./ -name "*.pyc" -exec rm \{} \;
-find ./ -type d -name "__pycache__" -exec rm -Rf \{} \;
-find ./ -type d -name "ccache" -exec rm -Rf \{} \;
-rm -Rf build
-rm -f config.mk
-rm -f config.log build.log config.status
-rm -f amuse.cfg
-rm -f test*.pickle test.csv
tests:
$(PYTHON) setup.py tests
doc:
$(PYTHON) setup.py -q build_latex
html:
make -C doc html
latexpdf:
make -C doc latexpdf
%.code:
ifneq (,$(findstring s,$(MAKEFLAGS)))
$(PYTHON) setup.py build_code --inplace --clean=$(CLEAN) --code-name=$*
else
$(PYTHON) setup.py -v build_code --inplace --clean=$(CLEAN) --code-name=$*
endif
help:
@echo "brief overview of most important make options:"
@echo "make - build all AMUSE libraries and community codes "
@echo "make <name>.code - clean & build the community code <name> (or matching name*)"
@echo "make clean - clean codes and libraries"
@echo "make distclean - clean codes and libraries and all configuration files"