git clone https://git.lucas.co/fontpreview.git
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