File: keep_R_files.patch

package info (click to toggle)
libvcflib 1.0.0~rc1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 46,836 kB
  • ctags: 1,488
  • sloc: cpp: 27,298; makefile: 177; ansic: 139; python: 46; perl: 26; sh: 19
file content (35 lines) | stat: -rw-r--r-- 1,155 bytes parent folder | download | duplicates (2)
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
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 15 Sep 2016 22:26:26 +0200
Description: There is a dir bin/ containing some R files which
 is removed in clean target.  Just use a different output dir
 that can be cleaned without problems

--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ SOURCES = src/Variant.cpp \
 OBJECTS= $(SOURCES:.cpp=.o)
 
 VCF_LIB_LOCAL:=$(shell pwd)
-BIN_DIR:=bin
+BIN_DIR:=binaries
 LIB_DIR:=lib
 SRC_DIR=src
 INC_DIR:=include
@@ -111,7 +111,7 @@ BIN_SOURCES = src/vcfecho.cpp \
 # src/vcfsom.cpp
 
 #BINS = $(BIN_SOURCES:.cpp=)
-BINS = $(addprefix bin/,$(notdir $(BIN_SOURCES:.cpp=)))
+BINS = $(addprefix $(BIN_DIR)/,$(notdir $(BIN_SOURCES:.cpp=)))
 SHORTBINS = $(notdir $(BIN_SOURCES:.cpp=))
 
 # TABIX = tabixpp/tabix.o
@@ -177,7 +177,7 @@ $(FILEVERCMP): pre
 	ln -sf ../filevercmp/filevercmp.h $(VCF_LIB_LOCAL)/$(INC_DIR)/filevercmp.h
 
 $(SHORTBINS): pre
-	$(MAKE) bin/$@
+	$(MAKE) $(BIN_DIR)/$@
 
 $(BINS): $(BIN_SOURCES) libvcflib.so $(OBJECTS) $(SMITHWATERMAN) $(DISORDER) $(LEFTALIGN) $(INDELALLELE) $(SSW) $(FILEVERCMP) pre intervaltree
 	$(CXX) src/$(notdir $@).cpp -o $@ $(INCLUDES) $(LDFLAGS) $(CXXFLAGS)