From 5b29d8c1a71e7d4d2db04ce26e2f10a5b8c77ba2 Mon Sep 17 00:00:00 2001 From: Willow Barraco Date: Thu, 22 Jan 2026 12:02:09 +0100 Subject: [PATCH] Makefile: do not rebuild on install Because the directory timestamp depends on the file insise, this rule cause a second rebuild. Let's just silently create the directory when we require it. Signed-off-by: Willow Barraco Signed-off-by: Maarten van Gompel --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6e027af..8133def 100644 --- a/Makefile +++ b/Makefile @@ -31,14 +31,12 @@ DOCS = wvkbd.1 all: ${BIN} ${DOCS} -$(BUILDDIR): +$(BUILDDIR)/config.h: mkdir -p $(BUILDDIR) - -$(BUILDDIR)/config.h: $(BUILDDIR) cp config.$(LAYOUT).h $@ -$(BUILDDIR)/%.o: $(BUILDDIR) $(BUILDDIR)/%.o: %.c + mkdir -p $(BUILDDIR) $(CC) -I $(CURDIR) -I $(CURDIR)/$(BUILDDIR) -c $(CFLAGS) -o $@ $< proto/%-client-protocol.c: proto/%.xml