From f4930f152d859b661c90026acdf974b9a3b4cff9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 20 Sep 2018 13:34:18 -0400 Subject: [PATCH] Makefile: fix installing to an empty prefix If `$(PREFIX)` was an empty directory, `$(PREFIX)/bin` would end up being the executable instead of a directory. Create the `bin` directory first. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b9a61fb..9bcc4bf 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,8 @@ help: @$(TASK_DONE) install: - install -m 0755 $(EXEC_FILES) $(PREFIX)/bin + mkdir -p $(PREFIX)/bin + install -m 0755 $(EXEC_FILES) $(PREFIX)/bin/$(EXEC_FILES) git config --global alias.quick-stats '! $(PREFIX)/bin/$(EXEC_FILES)' @$(TASK_DONE)