summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8428e96..dec7a75 100644
--- a/Makefile
+++ b/Makefile
@@ -19,11 +19,11 @@ BINARIES=$(patsubst $(SOURCE)/%.cpp,$(BIN)/%,$(SOURCES))
all: $(BINARIES)
-$(BIN)/%: $(SOURCE)/%.cpp $(BIN)
+$(BIN)/%: $(SOURCE)/%.cpp | $(BIN)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@
$(BIN):
- mkdir $(BIN)
+ mkdir -p $(BIN)
clean:
- rm -rf $(BINARIES)
+ rm -rf $(BIN)