diff --git a/Makefile b/Makefile index f95d7f0..a95c4ba 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,11 @@ BUILDDIR = bin SOURCES = $(wildcard $(SOURCEDIR)/*.cpp) OBJECTS = $(patsubst $(SOURCEDIR)/%.cpp,$(BUILDDIR)/%.o,$(SOURCES)) -all: $(TARGET) +all: $(BUILDDIR) $(TARGET) + + +$(BUILDDIR): + mkdir -p $(BUILDDIR) $(TARGET): $(OBJECTS)