forked from AlTarFramework/altar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (45 loc) · 1.25 KB
/
Makefile
File metadata and controls
57 lines (45 loc) · 1.25 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
# -*- Makefile -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
#
# (c) 2013-2018 parasim inc
# (c) 2010-2018 california institute of technology
# all rights reserved
#
# project
project := altar
# the source directory
src := .
# the destination directory
prefix := builds
# the altar libraries
altar.libraries := libaltar
# external dependencies
libaltar.packages := gsl pyre
# the altar extensions
altar.extensions := altarmodule
# external dependencies
altarmodule.packages := libaltarmodule libaltar gsl pyre python
# the models
models := ${wildcard models/*}
# the priors
priors := ${wildcard priors/*}
# metadata
altar.major := 2
altar.minor := 0
altar.revision = ${strip ${shell $(git.hash) || echo 0}}
now.year = ${strip ${shell $(date.year)}}
now.date = ${strip ${shell $(date.stamp)}}
# recipes
all: altar $(priors) $(models)
# make the altar python package, its libraries, and extensions
altar: altar.package altar.libraries altar.extensions
# recipes for building priors and models
$(priors) $(models) : altar
${call log.info,recurse,$@}
$(MAKE) -C $@ -I ${realpath .} prefix=${realpath $(prefix)}
# mark targets that are directories as phony
.PHONY: altar $(priors) $(models)
# get the master makefile
include config/master.mm
# end of file