diff options
Diffstat (limited to 'build/module.mk')
-rw-r--r-- | build/module.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build/module.mk b/build/module.mk new file mode 100644 index 000000000..286927436 --- /dev/null +++ b/build/module.mk @@ -0,0 +1,15 @@ +.PHONY: all compile source clean + +all: compile + +source: + mkdir -p dist$(LUCI_INSTALLDIR) + cp root dist -R + cp src dist$(LUCI_INSTALLDIR) -R + for i in $$(find dist -name .svn); do rm $$i -rf; done + +compile: source + for i in $$(find dist -name *.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done + +clean: + rm dist -rf
\ No newline at end of file |