forked from arq5x/bedtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
78 lines (65 loc) · 1.8 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
67
68
69
70
71
72
73
74
75
76
77
78
# ==========================
# BEDTools Makefile
# (c) 2009 Aaron Quinlan
# ==========================
# define our object and binary directories
export OBJ_DIR = obj
export BIN_DIR = bin
export SRC_DIR = src
export CXX = g++
export CXXFLAGS = -Wall -O2
export LIBS = -lz
SUBDIRS = $(SRC_DIR)/annotateBed \
$(SRC_DIR)/bamToBed \
$(SRC_DIR)/bedToBam \
$(SRC_DIR)/bedToIgv \
$(SRC_DIR)/bed12ToBed6 \
$(SRC_DIR)/closestBed \
$(SRC_DIR)/complementBed \
$(SRC_DIR)/coverageBed \
$(SRC_DIR)/fastaFromBed \
$(SRC_DIR)/fjoin \
$(SRC_DIR)/genomeCoverageBed \
$(SRC_DIR)/intersectBed \
$(SRC_DIR)/linksBed \
$(SRC_DIR)/maskFastaFromBed \
$(SRC_DIR)/mergeBed \
$(SRC_DIR)/overlap \
$(SRC_DIR)/pairToBed \
$(SRC_DIR)/pairToPair \
$(SRC_DIR)/shuffleBed \
$(SRC_DIR)/slopBed \
$(SRC_DIR)/sortBed \
$(SRC_DIR)/subtractBed \
$(SRC_DIR)/unionBedGraphs \
$(SRC_DIR)/windowBed
UTIL_SUBDIRS = $(SRC_DIR)/utils/lineFileUtilities \
$(SRC_DIR)/utils/bedFile \
$(SRC_DIR)/utils/bedGraphFile \
$(SRC_DIR)/utils/tabFile \
$(SRC_DIR)/utils/genomeFile \
$(SRC_DIR)/utils/gzstream \
$(SRC_DIR)/utils/fileType \
$(SRC_DIR)/utils/bedFilePE \
$(SRC_DIR)/utils/sequenceUtilities \
$(SRC_DIR)/utils/BamTools
all:
[ -d $(OBJ_DIR) ] || mkdir -p $(OBJ_DIR)
[ -d $(BIN_DIR) ] || mkdir -p $(BIN_DIR)
@echo "Building BEDTools:"
@echo "========================================================="
@for dir in $(UTIL_SUBDIRS); do \
echo "- Building in $$dir"; \
$(MAKE) --no-print-directory -C $$dir; \
echo ""; \
done
@for dir in $(SUBDIRS); do \
echo "- Building in $$dir"; \
$(MAKE) --no-print-directory -C $$dir; \
echo ""; \
done
.PHONY: all
clean:
@echo "Cleaning up."
@rm -f $(OBJ_DIR)/* $(BIN_DIR)/*
.PHONY: clean