summaryrefslogtreecommitdiffhomepage
path: root/build/module.mk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-08 16:52:51 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-01-08 16:52:51 +0100
commitb348413fb23962e28fd5158e3ba21ea933feb8f3 (patch)
treeb375b105f48d24476ea765667a412bee6d4f34f6 /build/module.mk
parenteb25d532a88b140431c20077edf56bb40663c8fc (diff)
build: remove remainders of old build system
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'build/module.mk')
-rw-r--r--build/module.mk46
1 files changed, 0 insertions, 46 deletions
diff --git a/build/module.mk b/build/module.mk
deleted file mode 100644
index b69019c56..000000000
--- a/build/module.mk
+++ /dev/null
@@ -1,46 +0,0 @@
-MAKEPATH:=$(dir $(lastword $(MAKEFILE_LIST)))
--include $(MAKEPATH)config.mk
--include $(MAKEPATH)gccconfig.mk
-
-.PHONY: all build compile luacompile luasource clean luaclean
-
-all: build
-
-build: luabuild gccbuild
-
-luabuild: lua$(LUA_TARGET)
-
-gccbuild: compile
-compile:
-
-clean: luaclean
-
-luasource:
- mkdir -p dist$(LUA_MODULEDIR)
- mkdir -p dist$(LUCI_MODULEDIR)
- mkdir -p dist$(HTDOCS)
- cp -pR root/* dist 2>/dev/null || true
- cp -pR luasrc/* dist$(LUCI_MODULEDIR) 2>/dev/null || true
- cp -pR lua/* dist$(LUA_MODULEDIR) 2>/dev/null || true
- cp -pR htdocs/* dist$(HTDOCS) 2>/dev/null || true
- for i in $$(find dist -name .svn -o -name .gitignore); do rm -rf $$i || true; done
- ifneq ($(PO),)
- mkdir -p dist$(LUCI_I18NDIR)
- for file in $(PO); do \
- cp $(HOST)/lua-po/$$file.$(if $(PO_LANG),$(PO_LANG),*).* dist$(LUCI_I18NDIR)/ 2>/dev/null || true; \
- done
- endif
-
-
-luadiet: luasource
- for i in $$(find dist -type f -name '*.lua'); do LUA_PATH="../../contrib/luasrcdiet/lua/?.lua" $(LUA) ../../contrib/luasrcdiet/lua/LuaSrcDiet.lua --maximum $$i -o $$i.diet && mv $$i.diet $$i; done
-
-luastrip: luasource
- for i in $$(find dist -type f -name '*.lua'); do perl -e 'undef $$/; open( F, "< $$ARGV[0]" ) || die $$!; $$src = <F>; close F; $$src =~ s/--\[\[.*?\]\](--)?//gs; $$src =~ s/^\s*--.*?\n//gm; open( F, "> $$ARGV[0]" ) || die $$!; print F $$src; close F' $$i; done
-
-luacompile: luasource
- for i in $$(find dist -name *.lua -not -name debug.lua| sort); do if ! $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; then echo "Error compiling $$i"; exit 1; fi; done
-
-luaclean:
- rm -rf dist
-