From 5df565faba5eb0c26a7ce0e2d6e9092bf71cb1e8 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 27 May 2008 12:13:19 +0000 Subject: [PATCH] add some indirection around make targets of module.mk, so you can combine it more easily with other build instructions --- build/module.mk | 14 +++++++++----- 1 file 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 + -- 2.25.1