diff options
| author | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-10-08 13:46:25 +0100 |
|---|---|---|
| committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-10-08 13:46:25 +0100 |
| commit | 6ac7b5244639f93de3d1629ace99b549fe7eea52 (patch) | |
| tree | 4e07127169fb51928c9a3ba906c820f9c93037fa | |
| parent | d10b4c21779344acd57a60b059a941e4ebdf2b01 (diff) | |
| download | benchmarks-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-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |