makefile: Ensure that 'LUA_BINDIR' exists before installation

This commit is contained in:
Jordan Irwin 2017-08-10 12:36:41 -07:00
parent 03fcec035f
commit 0019beaa41
1 changed files with 3 additions and 0 deletions

View File

@ -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)"