From 0019beaa41c93531c8d72703769084140d0a71ba Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Thu, 10 Aug 2017 12:36:41 -0700 Subject: [PATCH] makefile: Ensure that 'LUA_BINDIR' exists before installation --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index 8bc1793..4fe351e 100644 --- a/makefile +++ b/makefile @@ -14,6 +14,9 @@ install_luajit: install_parts @chmod -v +x "$(DESTDIR)$(LUA_BINDIR)/ldoc" install_parts: + @if [ ! -d "$(DESTDIR)$(LUA_BINDIR)" ]; then \ + mkdir -vp "$(DESTDIR)$(LUA_BINDIR)"; \ + fi @mkdir -vp "$(DESTDIR)$(LUA_SHAREDIR)" @cp -v ldoc.lua "$(DESTDIR)$(LUA_SHAREDIR)" @cp -vr ldoc "$(DESTDIR)$(LUA_SHAREDIR)"