-
Notifications
You must be signed in to change notification settings - Fork 77
/
Makefile
53 lines (41 loc) · 1.31 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
#-----------------------------------------------------------------------------
# Makefile for deploying the assembly cpp package to a given root location
#-----------------------------------------------------------------------------
SHELL = /bin/bash
ifeq ($(origin ASSEMBLY_HOME), undefined)
PREFIX = $(SEYMOUR_HOME)/analysis
else
PREFIX = $(ASSEMBLY_HOME)
endif
INSTALL_LIB_DIR = $(PREFIX)/lib
INSTALL_BIN_DIR = $(PREFIX)/bin
# LIB_LIST =
EXE_LIST = \
alignment \
sequtils \
pbihdfutils \
bwtutils \
simulator
# Not currently used - AAK
# pelusa \
# jabon \
# All common files should be headers- AAK
# common \
BUILT_EXES := $(foreach subdir, $(EXE_LIST), $(subdir)/build/$(subdir))
#--- Building
BUILD_TARGETS := $(addsuffix -build, $(EXE_LIST))
%-build:
@[[ -e $*/Makefile ]] && $(MAKE) -C $* -f Makefile UP=../ || true
build: $(BUILD_TARGETS)
#--- Installing --- TODO put in something for shared libraries
INSTALL_TARGETS := $(addsuffix -install, $(EXE_LIST))
%-install:
@[[ -e $*/Makefile ]] && $(MAKE) -C $* -f Makefile install INSTALL_DIR=$(INSTALL_BIN_DIR) || true
install: $(INSTALL_TARGETS)
cramtests:
cram --shell=/bin/bash ctest/*.t
#--- Cleaning
CLEAN_TARGETS := $(addsuffix -clean, $(EXE_LIST))
%-clean:
@[[ -e $*/Makefile ]] && $(MAKE) -C $* -f Makefile clean || true
clean: $(CLEAN_TARGETS)