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 <contact@willowbarraco.fr>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Willow Barraco
2026-01-22 12:02:09 +01:00
committed by Maarten van Gompel
parent 987ea03f84
commit 5b29d8c1a7

View File

@@ -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