forked from quimbp/cosmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·74 lines (62 loc) · 1.71 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include make.inc
all: pwd include lib bin COSMO BLM MLM TOOLS COSMO_VIEW
@echo "Done"
pwd:
rm -f path.inc
echo "COSMO = ${PWD}" > path.inc
include:
mkdir $@
lib:
mkdir $@
bin:
mkdir $@
COSMO:
@echo
@echo "=============================================="
@echo "Compiling the COSMO library"
@echo "=============================================="
@echo
(cd src/lib/; make clean; make all)
BLM:
@echo
@echo "=============================================="
@echo "Compiling BLM"
@echo "=============================================="
@echo
(cd src/blm/; make clean; make all)
MLM:
@echo
@echo "=============================================="
@echo "Compiling MLM"
@echo "=============================================="
@echo
(cd src/mlm/; make clean; make all)
TOOLS:
@echo
@echo "=============================================="
@echo "Compiling TOOLS"
@echo "=============================================="
@echo
(cd src/tools/; make clean; make all)
COSMO_VIEW:
@echo
@echo "=============================================="
@echo "COSMO-VIEW"
@echo "=============================================="
@echo
rm -f modules/cosmo/__init__.py
sed 's@#COSMO_ROOT.*@COSMO_ROOT="'"${PWD}"'"@' modules/cosmo/__init__.template > modules/cosmo/__init__.py
(cd conf/default/; rm -f *.conf)
(cd modules; sudo python3 setup.py build; sudo python3 setup.py install)
(cp cosmo-view/cosmo-view $(BINDIR))
(cd $(BINDIR); chmod +x cosmo-view)
clean:
(rm -f path.inc)
(cd src/lib; make clean)
(cd src/blm; make clean)
(cd src/mlm; make clean)
(cd src/tools; make clean)
(cd bin/; rm -f cosmo-view)
(cd conf/default/; rm -f *.conf)
(cd modules; sudo rm -fr build)
(cd modules/cosmo; rm -f __init__.py)