Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile « src « luci-base « modules - github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3e6ead10859da2cae20d4348a0850601d63c545e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%.o: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC) -c -o $@ $<

clean:
	rm -f po2lmo parser.so version.lua *.o

jsmin: jsmin.o
	$(CC) $(LDFLAGS) -o $@ $^

po2lmo: po2lmo.o template_lmo.o
	$(CC) $(LDFLAGS) -o $@ $^

parser.so: template_parser.o template_utils.o template_lmo.o template_lualib.o
	$(CC) $(LDFLAGS) -shared -o $@ $^

version.lua:
	./mkversion.sh $@ $(LUCI_VERSION) "$(LUCI_GITBRANCH)"

compile: parser.so version.lua

install: compile
	mkdir -p $(DESTDIR)/usr/lib/lua/luci/template
	cp parser.so $(DESTDIR)/usr/lib/lua/luci/template/parser.so
	cp version.lua $(DESTDIR)/usr/lib/lua/luci/version.lua