From 87f2fabcffb320ceff01b34460c52cb293d3615b Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Fri, 10 Oct 2014 20:50:30 +0200
Subject: [PATCH] fix makefiles

---
 alib2algo/makefile | 8 ++++----
 alib2data/makefile | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/alib2algo/makefile b/alib2algo/makefile
index d8b9e8ea69..b3c532f9b4 100644
--- a/alib2algo/makefile
+++ b/alib2algo/makefile
@@ -143,11 +143,11 @@ test: unit-test-debug unit-test-release
 
 
 
-lib-debug/$(LIBRARY): $(OBJECTS_DEBUG)
+lib-debug/$(LIBRARY): $(OBJECTS_DEBUG) obj-debug/
 	mkdir -p $(dir $@)
 	$(CXX) $(OBJECTS_DEBUG) -o $@ $(LDFLAGS_DEBUG)
 
-lib-release/$(LIBRARY): $(OBJECTS_RELEASE)
+lib-release/$(LIBRARY): $(OBJECTS_RELEASE) obj-release/
 	mkdir -p $(dir $@)
 	$(CXX) $(OBJECTS_RELEASE) -o $@ $(LDFLAGS_RELEASE)
 
@@ -172,11 +172,11 @@ build-release: lib-release/$(LIBRARY)
 
 
 
-test-bin-debug/$(TESTBIN): lib-debug/$(LIBRARY) $(TEST_OBJECTS_DEBUG)
+test-bin-debug/$(TESTBIN): lib-debug/$(LIBRARY) $(TEST_OBJECTS_DEBUG) test-obj-debug/
 	mkdir -p $(dir $@)
 	$(CXX) $(TEST_OBJECTS_DEBUG) -o $@ $(TEST_LDFLAGS_DEBUG)
 
-test-bin-release/$(TESTBIN): lib-release/$(LIBRARY) $(TEST_OBJECTS_RELEASE)
+test-bin-release/$(TESTBIN): lib-release/$(LIBRARY) $(TEST_OBJECTS_RELEASE) test-obj-release/
 	mkdir -p $(dir $@)
 	$(CXX) $(TEST_OBJECTS_RELEASE) -o $@ $(TEST_LDFLAGS_RELEASE)
 
diff --git a/alib2data/makefile b/alib2data/makefile
index 0c025d6a2b..9eb63cd1a4 100644
--- a/alib2data/makefile
+++ b/alib2data/makefile
@@ -141,11 +141,11 @@ test: unit-test-debug unit-test-release
 
 
 
-lib-debug/$(LIBRARY): $(OBJECTS_DEBUG)
+lib-debug/$(LIBRARY): $(OBJECTS_DEBUG) obj-debug/
 	mkdir -p $(dir $@)
 	$(CXX) $(OBJECTS_DEBUG) -o $@ $(LDFLAGS_DEBUG)
 
-lib-release/$(LIBRARY): $(OBJECTS_RELEASE)
+lib-release/$(LIBRARY): $(OBJECTS_RELEASE) obj-release/
 	mkdir -p $(dir $@)
 	$(CXX) $(OBJECTS_RELEASE) -o $@ $(LDFLAGS_RELEASE)
 
@@ -170,11 +170,11 @@ build-release: lib-release/$(LIBRARY)
 
 
 
-test-bin-debug/$(TESTBIN): lib-debug/$(LIBRARY) $(TEST_OBJECTS_DEBUG)
+test-bin-debug/$(TESTBIN): lib-debug/$(LIBRARY) $(TEST_OBJECTS_DEBUG) test-obj-debug/
 	mkdir -p $(dir $@)
 	$(CXX) $(TEST_OBJECTS_DEBUG) -o $@ $(TEST_LDFLAGS_DEBUG)
 
-test-bin-release/$(TESTBIN): lib-release/$(LIBRARY) $(TEST_OBJECTS_RELEASE)
+test-bin-release/$(TESTBIN): lib-release/$(LIBRARY) $(TEST_OBJECTS_RELEASE) test-obj-release/
 	mkdir -p $(dir $@)
 	$(CXX) $(TEST_OBJECTS_RELEASE) -o $@ $(TEST_LDFLAGS_RELEASE)
 
-- 
GitLab