summaryrefslogtreecommitdiffstats
path: root/src/lua.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-16 21:30:13 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-16 21:30:13 (GMT)
commit5f13bbba2791d84ad1a869b301b7bce1ed08d68f (patch)
treed7d7aaca55ea2afdb83f8b3494ef96880592d78c /src/lua.mk
parent945e86770705119f052b7f404a909e5b84b79dc4 (diff)
downloadmxe-5f13bbba2791d84ad1a869b301b7bce1ed08d68f.zip
mxe-5f13bbba2791d84ad1a869b301b7bce1ed08d68f.tar.gz
mxe-5f13bbba2791d84ad1a869b301b7bce1ed08d68f.tar.bz2
lua: Fix static install
Fixes #461.
Diffstat (limited to 'src/lua.mk')
-rw-r--r--src/lua.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua.mk b/src/lua.mk
index 16f0971..eafe302 100644
--- a/src/lua.mk
+++ b/src/lua.mk
@@ -39,10 +39,14 @@ define $(PKG)_BUILD
AR='$(TARGET)-ar rcu' \
RANLIB='$(TARGET)-ranlib' \
a
+
+ # lua.h is installed to noinstall/ to avoid error when executing an empty
+ # 'install' command.
$(MAKE) -C '$(1)' -j 1 \
INSTALL_TOP='$(PREFIX)/$(TARGET)' \
INSTALL_BIN='$(1)/noinstall' \
INSTALL_MAN='$(1)/noinstall' \
+ TO_BIN='lua.h' \
INSTALL='$(INSTALL)' \
install
$($(PKG)_BUILD_COMMON)