Merge pull request #1222 from LuaAndC/gitkeep-lua-share

lua: create .gitkeep files in empty directories
This commit is contained in:
Boris Nagaev 2016-02-28 13:33:44 +03:00
commit 2919bb789f
1 changed files with 7 additions and 2 deletions

View File

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