mbpfan-josie

Adds creation of bin/ dir if not present

ef8cda3b2dcd3eec65ddacfdde150e34c75bdd05
Daniel Graziotin <dgraziotin@task3.cc> · 2012-07-03T13:30 · browse files at this commit

parents: e84d5e2

diff --git a/Makefile b/Makefile
index dcbbdf5..a67d557 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,7 @@ endif
 OBJS := $(patsubst %.$(C),%.$(OBJ),$(wildcard $(SOURCE_PATH)*.$(C)))
 
 %.$(OBJ):%.$(C)
+	mkdir -p bin
 	@echo Compiling $(basename $<)...
 	$(CCMD) -c $(CPPFLAGS) $(CXXFLAGS) $< $(OBJFLAG)$@