-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
66 lines (40 loc) · 1.14 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
include Makefile.config
EXES = scripts
ASSIGN = $(EXES)/awe-assign
CASSIGN = cassign/assign
PYTHON_SRC = awe/*.py scripts/*
PY_SUBMODULES = trax
PY_INSTALL_ARGS = --prefix $(PREFIX) --install-data $(PREFIX)/share/awe
AWE_DATAFILES = awe-generic-data.tar.bz2 awe-instance-data.tar.bz2
.PHONY: assign
assign : $(ASSIGN)
$(ASSIGN) : $(CASSIGN)
cp $(CASSIGN) $(ASSIGN)
chmod +x $(ASSIGN)
$(CASSIGN) : cassign
make -C $^
$(AWE_DATAFILES) :
$(eval dname = $(@:.tar.bz2=))
tar cf $@ $(dname)
.PHONY: datafiles
datafiles : $(AWE_DATAFILES)
.PHONY: build
build : $(PYTHON_SRC)
python setup.py build
.PHONY: install.submodules
install.submodules : install.submodules.trax
.PHONY: install.submodules.trax
install.submodules.trax : trax
cd $^ && python setup.py install $(PY_INSTALL_ARGS)
.PHONY: install
install : build install.submodules $(ASSIGN) $(AWE_DATAFILES)
python setup.py install $(PY_INSTALL_ARGS)
.PHONY: clean.trax
clean.trax : trax
rm -rf $^/build
.PHONY: clean
clean : clean.trax
make -C cassign clean
rm -rf build
rm -rf *-workers debug resample transactional.*
rm -f awe-generic-data.tar.bz2 awe-instance-data.tar.bz2