Don't assume that the path we are installing to exists - smdev - suckless mdev
HTML git clone git://git.suckless.org/smdev
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 02fabc3dfd5b38ffe326030c6bbb537ec61b31ea
DIR parent 7fdb83148bc7ad9b70434a7e3af5de68c4579514
HTML Author: sin <sin@2f30.org>
Date: Sun, 6 Apr 2014 09:04:43 +0100
Don't assume that the path we are installing to exists
Diffstat:
M Makefile | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -53,6 +53,7 @@ util.a: $(LIB)
install: all
@echo installing executable to $(DESTDIR)$(PREFIX)/bin
+ @mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
@cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN)