-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 832 Bytes
/
Makefile
File metadata and controls
43 lines (30 loc) · 832 Bytes
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
#
# src dir contains gvcftools code
#
# redist dir contains boost, tabix and samtools dependencies
#
SRC_DIR := $(CURDIR)/src
export BIN_DIR := $(CURDIR)/bin
REDIST_DIR := $(CURDIR)/redist
export TABIX_ROOT := $(REDIST_DIR)/tabix
export BOOST_ROOT := $(REDIST_DIR)/boost/stage
.PHONY: all build clean install redist test
all: install
build: redist
$(MAKE) -C $(SRC_DIR)
redist:
$(MAKE) -C $(REDIST_DIR)
install: test
mkdir -p $(BIN_DIR) && $(MAKE) -C $(SRC_DIR) $@
clean: srcclean
$(MAKE) -C $(REDIST_DIR) $@
###### developer targets
test: build
$(MAKE) -C $(SRC_DIR) $@
# Cleans only src but leaves redist in place:
srcclean:
$(MAKE) -C $(SRC_DIR) clean
rm -rf $(BIN_DIR)
# Create emacs tag files
etags:
cd src && find . -type f -iname "*.[ch]" -or -iname "*.cpp" -or -iname "*.hh" | sed "s/\.\///" | etags -