From 67ae0999c4827a9ba8a4eadc10063b5853df3ab8 Mon Sep 17 00:00:00 2001
From: Aaron <aaronquinlan@gmail.com>
Date: Fri, 17 Jun 2011 16:43:28 -0400
Subject: [PATCH] make Bamtools/lib on the fly

---
 src/utils/BamTools/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/utils/BamTools/Makefile b/src/utils/BamTools/Makefile
index aac8c3e3..8c2247c2 100644
--- a/src/utils/BamTools/Makefile
+++ b/src/utils/BamTools/Makefile
@@ -39,12 +39,11 @@ OBJECTS= $(SOURCES:.cpp=.o)
 LIBRARY=libbamtools.a
 
 all: $(LIBRARY)
-
+    
 .PHONY: all
 
-[ -d lib ] || mkdir -p lib
-
 $(LIBRARY): $(OBJECTS)
+	[ -d lib ] || mkdir -p lib
 	@echo "  * linking $(LIBRARY)"
 	ar cr lib/$@  $^
 		
-- 
GitLab