diff options
author | Steven Barth <steven@midlink.org> | 2008-04-11 18:24:25 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-11 18:24:25 +0000 |
commit | 0268c3491f5b14ffdba097e6a983ffc7c53daa13 (patch) | |
tree | 2c1e23726f304a85cd0d75ac5836a6e6c7e7dc71 /module/admin-core/Makefile | |
parent | 84889c281cffb8f05248e967e1897bd8a55cecd9 (diff) |
* Major repository revision
Diffstat (limited to 'module/admin-core/Makefile')
-rw-r--r-- | module/admin-core/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/module/admin-core/Makefile b/module/admin-core/Makefile new file mode 100644 index 0000000000..9b57451399 --- /dev/null +++ b/module/admin-core/Makefile @@ -0,0 +1,36 @@ +LUAC = luac +LUAC_OPTIONS = -s + +FILES = i18n/* view/*/*.htm + +CFILES = controller/*/*.lua model/cbi/*/*.lua model/menu/*.lua + +DIRECTORIES = model/cbi model/menu controller i18n view + + +INFILES = $(CFILES:%=src/%) +OUTDIRS = $(DIRECTORIES:%=dist/%) +CPFILES = $(FILES:%=src/%) + +.PHONY: all compile source clean depends + +all: compile + + +depends: + mkdir -p $(OUTDIRS) + for i in $(CPFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i); done + +compile: depends + for i in $(INFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); $(LUAC) $(LUAC_OPTIONS) -o dist/$$i src/$$i); done + + +source: depends + for i in $(INFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i); done + + +clean: + rm dist -rf |