diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-03-27 15:42:42 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-03-27 15:42:42 +0000 |
commit | dfe689229df9afe9a3b7783b477ed82f9a521dbc (patch) | |
tree | 8df36ce9bed6d4b92051cad70481b1ee73404446 /package/lua/lua.mk | |
parent | 584e60c7972c6f720492c31f82715af9328eda06 (diff) | |
download | buildroot-novena-dfe689229df9afe9a3b7783b477ed82f9a521dbc.tar.gz buildroot-novena-dfe689229df9afe9a3b7783b477ed82f9a521dbc.zip |
buildroot: cleanup <package>-clean targets.
Based on input from Arndt Kritzner & Bernhard Fischer.
Diffstat (limited to 'package/lua/lua.mk')
-rw-r--r-- | package/lua/lua.mk | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/package/lua/lua.mk b/package/lua/lua.mk index ee8ffac12..45a446cfd 100644 --- a/package/lua/lua.mk +++ b/package/lua/lua.mk @@ -12,7 +12,7 @@ LUA_SITE=http://www.lua.org/ftp LUA_DIR=$(BUILD_DIR)/lua-$(LUA_VERSION) -LUA_CFLAGS=-DLUA_USE_LINUX +LUA_CFLAGS=-DLUA_USE_LINUX LUA_MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" $(DL_DIR)/$(LUA_SOURCE): @@ -53,7 +53,7 @@ $(TARGET_DIR)/usr/bin/luac: $(STAGING_DIR)/usr/bin/luac cp -dpf $(STAGING_DIR)/usr/bin/luac $(TARGET_DIR)/usr/bin/luac -lua-bins: $(TARGET_DIR)/usr/bin/lua $(TARGET_DIR)/usr/bin/luac +lua-bins: $(TARGET_DIR)/usr/bin/lua $(TARGET_DIR)/usr/bin/luac lua-libs: $(TARGET_DIR)/usr/lib/liblua.a @@ -62,9 +62,11 @@ lua: uclibc readline ncurses lua-bins lua-libs lua-source: $(DL_DIR)/$(LUA_SOURCE) lua-clean: - @if [ -d $(LUA_DIR)/Makefile ]; then \ - $(MAKE) -C $(LUA_DIR) clean; \ - fi + rm -f $(STAGING_DIR)/usr/bin/lua $(TARGET_DIR)/usr/bin/luac + rm -f $(STAGING_DIR)/usr/lib/liblua.a + rm -f $(TARGET_DIR)/usr/bin/lua $(TARGET_DIR)/usr/bin/luac + rm -f $(TARGET_DIR)/usr/lib/liblua.a + -$(MAKE) -C $(LUA_DIR) clean lua-dirclean: rm -rf $(LUA_DIR) |