]> Softwares of Agnibho - imagecap.git/commitdiff
Create install path if absent
authorAgnibho Mondal <mondal@agnibho.com>
Thu, 8 Feb 2018 14:59:47 +0000 (20:29 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Thu, 8 Feb 2018 14:59:47 +0000 (20:29 +0530)
Makefile

index c7c6355f872762955199a82ece8df189376e245d..8677b60f2120d6cf06de317194a470968008fe9b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ exec_prefix = $(prefix)
 bindir = $(exec_prefix)/bin
 
 INSTALL = install -vb
+INSTALL_DIR = $(INSTALL) -d
 INSTALL_PROGRAM = $(INSTALL) -m 755
 
 all:
@@ -12,6 +13,7 @@ all:
        @echo "Run 'make uninstall' for uninstallation."
 
 install:
+       $(INSTALL_DIR) $(DESTDIR)$(bindir)
        $(INSTALL_PROGRAM) imagecap $(DESTDIR)$(bindir)
 
 uninstall: