diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-02-28 10:33:44 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2016-02-28 10:33:44 (GMT) |
commit | 2919bb789f0dc9cf57cf4d9db46cb9cc30350287 (patch) | |
tree | 14401b3f006bcf0e71942ca27ec4cd41f749f798 | |
parent | 3506c35fce51d86a5b4779e3b74045b4901708d7 (diff) | |
parent | aa49f5265b21e2fb29690052d7d0450bd8dbdf5c (diff) | |
download | mxe-2919bb789f0dc9cf57cf4d9db46cb9cc30350287.zip mxe-2919bb789f0dc9cf57cf4d9db46cb9cc30350287.tar.gz mxe-2919bb789f0dc9cf57cf4d9db46cb9cc30350287.tar.bz2 |
Merge pull request #1222 from LuaAndC/gitkeep-lua-share
lua: create .gitkeep files in empty directories
-rw-r--r-- | src/lua.mk | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -20,6 +20,9 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD_COMMON + touch '$(PREFIX)/$(TARGET)/lib/lua/$($(PKG)_SHORTVER)/.gitkeep' + touch '$(PREFIX)/$(TARGET)/share/lua/$($(PKG)_SHORTVER)/.gitkeep' + #pkg-config file (echo 'Name: $(PKG)'; \ echo 'Version: $($(PKG)_VERSION)'; \ @@ -27,6 +30,8 @@ define $(PKG)_BUILD_COMMON echo 'Libs: -l$(PKG)';) \ > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc' + cp '$(1)/src/lua' '$(PREFIX)/$(TARGET)/bin/lua.exe' + '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-lua.exe' \ @@ -50,7 +55,7 @@ define $(PKG)_BUILD TO_BIN='lua.h' \ INSTALL='$(INSTALL)' \ install - cp '$(1)/src/lua' '$(PREFIX)/$(TARGET)/bin/lua.exe' + $($(PKG)_BUILD_COMMON) endef @@ -70,7 +75,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 |