summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--build/module.mk14
1 files changed, 9 insertions, 5 deletions
diff --git a/build/module.mk b/build/module.mk
index a0bd2935c..8932f5761 100644
--- a/build/module.mk
+++ b/build/module.mk
@@ -1,15 +1,19 @@
-.PHONY: all compile source clean
+.PHONY: all compile compile-module source source-module clean clean-module
all: compile
+compile: compile-module
+clean: clean-module
+source: source-module
-source:
+source-module:
mkdir -p dist$(LUCI_INSTALLDIR)
cp root/* dist -R 2>/dev/null || true
cp src/* dist$(LUCI_INSTALLDIR) -R 2>/dev/null || true
for i in $$(find dist -name .svn); do rm $$i -rf; done
-compile: source
+compile-module: source-module
for i in $$(find dist -name *.lua -not -name debug.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done
-
-clean:
+
+clean-module:
rm -rf dist
+