diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-10-10 22:38:17 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-12-06 02:38:23 (GMT) |
commit | 580be671e5ba0a3748c3bf6b275aca5062f0c3b8 (patch) | |
tree | 43099e6219f30a6d21015987ee7685e4bd74c1d5 /src | |
parent | 9537e5c9d2f83fe11b8c328e5e142aa1822cbdcc (diff) | |
download | mxe-580be671e5ba0a3748c3bf6b275aca5062f0c3b8.zip mxe-580be671e5ba0a3748c3bf6b275aca5062f0c3b8.tar.gz mxe-580be671e5ba0a3748c3bf6b275aca5062f0c3b8.tar.bz2 |
lua: install cross-compiled binary to <target>/bin
Diffstat (limited to 'src')
-rw-r--r-- | src/lua.mk | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -38,7 +38,7 @@ define $(PKG)_BUILD CC='$(TARGET)-gcc' \ AR='$(TARGET)-ar rcu' \ RANLIB='$(TARGET)-ranlib' \ - a + a lua # lua.h is installed to noinstall/ to avoid error when executing an empty # 'install' command. @@ -49,6 +49,7 @@ define $(PKG)_BUILD TO_BIN='lua.h' \ INSTALL='$(INSTALL)' \ install + cp '$(1)/src/lua' '$(PREFIX)/$(TARGET)/bin/lua.exe' $($(PKG)_BUILD_COMMON) endef @@ -60,7 +61,7 @@ define $(PKG)_BUILD_SHARED RANLIB='echo skipped ranlib' \ SYSCFLAGS='-DLUA_BUILD_AS_DLL' \ LUA_A=lua$($(PKG)_SOVERS).dll \ - a + a lua $(MAKE) -C '$(1)' -j 1 \ INSTALL_TOP='$(PREFIX)/$(TARGET)' \ INSTALL_MAN='$(1)/noinstall' \ @@ -68,6 +69,7 @@ define $(PKG)_BUILD_SHARED INSTALL='$(INSTALL)' \ TO_LIB='liblua.dll.a' \ install + cp '$(1)/src/lua' '$(PREFIX)/$(TARGET)/bin/lua.exe' $($(PKG)_BUILD_COMMON) endef |