From 4426d8152c4f52a01128c3d63dd6756122ecd3ea Mon Sep 17 00:00:00 2001 From: Benjamin Demaille Date: Tue, 1 Sep 2026 00:01:53 +0200 Subject: [PATCH] Makefile: create BINDIR before installing `make install` fails when $(PREFIX)/bin does not exist yet, because `install` does not create the destination directory: install fastplong /path/to/prefix/bin/fastplong install: /path/to/prefix/bin/fastplong: No such file or directory This happens with any staged install into a fresh prefix (packaging, DESTDIR-style installs, containers). Create BINDIR first. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 05377a7..6faf66f 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ clean: @rm -f $(TEST_TARGET) install: + mkdir -p $(BINDIR) install $(TARGET) $(BINDIR)/$(TARGET) @echo "Installed."