From: Steven Barth Date: Tue, 27 May 2008 12:13:19 +0000 (+0000) Subject: add some indirection around make targets of module.mk, so you can combine it more... X-Git-Tag: 0.8.0~980 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5df565faba5eb0c26a7ce0e2d6e9092bf71cb1e8;p=oweals%2Fluci.git add some indirection around make targets of module.mk, so you can combine it more easily with other build instructions --- 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 +