-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile.devel
66 lines (57 loc) · 1.59 KB
/
Makefile.devel
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
#!/usr/bin/make -f
##
## Helper Makefile for local testing of the inla and fmesher programs
## To compile and locally install inla and fmesher, run
## make -f Makefile.devel
##
## TODO: add targets for taucs and other special libraries.
## Current version assumes they are installed and available.
##
## In R, run
## inla.my.update(binaries=TRUE)
##
## To change the PREFIX for a given user, add an "ifeq" like
## the examples for "finn" and "finnkrl".
## The default PREFIX is $(HOME)/local
## The default matches the default in inla.my.update
##
## Note: For faster access, do
## chmod a+x Makefile.devel
## which enables you to use the shortcut
## ./Makefile.devel
## Setup paths:
USERNAME = $(shell whoami)
## Set PREFIX path, may be different for each user
## /home/username/local is a good default
ifeq ($(USERNAME),finn)
PREFIX = $(HOME)/local
endif
ifeq ($(USERNAME),finnkrl)
PREFIX = $(HOME)/local
endif
ifeq ($(USERNAME),fl353)
PREFIX = $(HOME)/local
endif
ifeq ($(USERNAME),hrue)
PREFIX = $(HOME)/p/inla/work/local
endif
## otherwise use default directory.
PREFIX ?= $(HOME)/local
## Do the work:
all: gmrflib inla fmesher
## TODO: add proper calls to compile taucs
##taucs:
## make -f build-configs/linux/Makefile taucs
gmrflib:
make -C gmrflib clean
make -C gmrflib PREFIX=$(PREFIX)
make -C gmrflib PREFIX=$(PREFIX) install
inla:
make -C inlaprog clean
make -C inlaprog PREFIX=$(PREFIX)
make -C inlaprog PREFIX=$(PREFIX) install
fmesher:
make -C fmesher clean
make -C fmesher PREFIX=$(PREFIX)
make -C fmesher PREFIX=$(PREFIX) install
.PHONY: gmrflib inla fmesher all