summaryrefslogtreecommitdiffhomepage
path: root/build/module.mk
blob: 3db3cc3b729220f83ee9fda5d2f5902041fb6710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.PHONY: all compile source clean

all: compile

source:
	mkdir -p dist$(LUCI_INSTALLDIR)
	[ -d root ] && cp root/* dist -R
	[ -d src ] && 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