From 6ac7b5244639f93de3d1629ace99b549fe7eea52 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Thu, 8 Oct 2026 13:46:25 +0100 Subject: Fix bin directory handling Every time bin modify time changes targets are rebuit. This is not how it is supposed to work. Specify bin as order-only prerequisite to avoid this problem. --- Makefile | 6 +++--- 1 file 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) -- cgit v1.3.1