forked from ivanpadilla7/qpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
123 lines (80 loc) · 2.26 KB
/
Makefile
File metadata and controls
123 lines (80 loc) · 2.26 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
LOCALPREFIX = $(HOME)/.local
PYTHON ?= python
ifeq ($(PREFIX), )
PYTHONPREFIX =
else
PYTHONPREFIX = --prefix=$(PREFIX)
endif
default: all
all: qpoint
.PHONY: qpoint erfa chealpix python docs
qpoint: erfa chealpix
make -C src
qpoint-debug: erfa chealpix
CFLAGS="-g -DDEBUG" make -C src
qpoint-lite: erfa
ENABLE_LITE=yes make -C src
qpoint-shared: erfa-shared chealpix-shared
ENABLE_SHARED=yes make -C src
qpoint-shared-lite: erfa-shared
ENABLE_SHARED=yes ENABLE_LITE=yes make -C src
erfa:
make -C erfa
erfa-shared:
ENABLE_SHARED=yes make -C erfa
chealpix:
make -C chealpix
chealpix-shared:
ENABLE_SHARED=yes make -C chealpix
install-erfa: erfa
make -C erfa install
install-erfa-shared: erfa-shared
ENABLE_SHARED=yes make -C erfa install
install-chealpix: chealpix
make -C chealpix install
install-chealpix-shared: chealpix-shared
ENABLE_SHARED=yes make -C chealpix install
python:
$(PYTHON) setup.py build
python-debug:
CFLAGS="-g -DDEBUG" $(PYTHON) setup.py build
docs:
$(PYTHON) setup.py build_sphinx -a
install-python: python
$(PYTHON) setup.py install $(PYTHONPREFIX)
install-qpoint: qpoint
make -C src install
install-qpoint-lite: qpoint-lite
install-qpoint-shared: qpoint-shared
ENABLE_SHARED=yes make -C src install
install-qpoint-shared-lite: qpoint-shared
ENABLE_SHARED=yes ENABLE_LITE=yes make -C src install
install: install-qpoint install-python
install-all: install-erfa install-chealpix install-qpoint install-python
install-python-user: python
$(PYTHON) setup.py install --prefix=$(LOCALPREFIX)
install-erfa-user: erfa
PREFIX=$(LOCALPREFIX) make -C erfa install
install-chealpix-user: chealpix
PREFIX=$(LOCALPREFIX) make -C chealpix install
install-qpoint-user: qpoint
PREFIX=$(LOCALPREFIX) make -C src install
install-user: install-qpoint-user install-python-user
uninstall-erfa:
make -C erfa uninstall
uninstall-chealpix:
make -C chealpix uninstall
uninstall-qpoint:
make -C src uninstall
uninstall: uninstall-qpoint
uninstall-all: uninstall-erfa uninstall-chealpix uninstall-qpoint
clean-erfa:
make -C erfa clean
clean-chealpix:
make -C chealpix clean
clean-python:
$(PYTHON) setup.py clean --all
clean-qpoint:
make -C src clean
clean: clean-qpoint clean-python
clean-all: clean clean-python clean-erfa clean-chealpix