* Made Makefiles attribute aware
[project/luci.git] / build / module.mk
1 .PHONY: all build compile luacompile luasource clean luaclean
2
3 all: build
4
5 build: luabuild gccbuild
6
7 luabuild: lua$(LUA_TARGET)
8
9 gccbuild: compile
10 compile:
11
12 clean: luaclean
13
14 luasource:
15 mkdir -p dist$(LUCI_INSTALLDIR)
16 cp -a root/* dist -R 2>/dev/null || true
17 cp -a luasrc/* dist$(LUCI_INSTALLDIR) -R 2>/dev/null || true
18 for i in $$(find dist -name .svn); do rm $$i -rf; done
19
20 luacompile: luasource
21 for i in $$(find dist -name *.lua -not -name debug.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done
22
23 luaclean:
24 rm -rf dist
25