git.lucas.co / fontpreview
git clone https://git.lucas.co/fontpreview.git

commitcd7ef0a63c275cee80683603b762b0811e1dc8b0
parentfcd3da9a96
authortastytea <github@tastytea.de>
date2020-05-18 17:53
Create directories on install

$(DESTDIR)$(BINDIR) may not exist.

 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 3a4171f..2e453d9 100644
--- a/Makefile
+++ b/Makefile
@@ -5,10 +5,12 @@ all:
 	@echo Run \'make install\' to install fontpreview on your device
 
 install:
+	@mkdir -p $(DESTDIR)$(BINDIR)
 	@cp fontpreview $(DESTDIR)$(BINDIR)/fontpreview
 	@chmod 755 $(DESTDIR)$(BINDIR)/fontpreview
 	@echo fontpreview has been installed on your device
 
 uninstall:
 	@rm -rf $(DESTDIR)$(BINDIR)/fontpreview
+	@rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(BINDIR)
 	@echo fontpreview has been removed from your device