summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2026-10-08 13:46:25 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2026-10-08 13:46:25 +0100
commit6ac7b5244639f93de3d1629ace99b549fe7eea52 (patch)
tree4e07127169fb51928c9a3ba906c820f9c93037fa
parentd10b4c21779344acd57a60b059a941e4ebdf2b01 (diff)
downloadbenchmarks-6ac7b5244639f93de3d1629ace99b549fe7eea52.tar.gz
benchmarks-6ac7b5244639f93de3d1629ace99b549fe7eea52.tar.bz2
benchmarks-6ac7b5244639f93de3d1629ace99b549fe7eea52.zip
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.
-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)