Make sure the INSTALL_FOLDER path exists.
authorHank Leininger <hlein@korelogic.com>
Fri, 10 Jun 2016 19:29:10 +0000 (15:29 -0400)
committerHank Leininger <hlein@korelogic.com>
Fri, 10 Jun 2016 19:29:10 +0000 (15:29 -0400)
This is only likely to come up when using DESTDIR to point to an
alternate directory tree, or if the user has pointed at some
exotic PREFIX for some reason, but should be harmless in the
normal case.

src/Makefile

index 914ed61..db30bbb 100644 (file)
@@ -212,6 +212,7 @@ install: native
        $(CP) -a rules/*                                $(DESTDIR)$(SHARED_FOLDER)/rules/
        $(INSTALL) -m 644 hashcat.hcstat                $(DESTDIR)$(SHARED_FOLDER)/
        $(INSTALL) -m 644 hashcat.hctune                $(DESTDIR)$(SHARED_FOLDER)/
+       $(INSTALL) -m 755 -d                            $(DESTDIR)$(INSTALL_FOLDER)
        $(INSTALL) -m 755 $(BINARY_NATIVE)              $(DESTDIR)$(INSTALL_FOLDER)/
 
 uninstall: