X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=lua%2FMakefile;h=2861d215619638b58db45c21a5ef798ca976ae02;hp=9b6e72839aed97c46f3c3286e1787fbe530b1604;hb=297cec5ed3038c10e714ed07e637b0c2b8e079eb;hpb=364e26378c4a5a37962a9e9d52c76b1531e7404f;ds=sidebyside diff --git a/lua/Makefile b/lua/Makefile index 9b6e728..2861d21 100644 --- a/lua/Makefile +++ b/lua/Makefile @@ -1,4 +1,7 @@ include ../Makefile.inc +prefix=/usr/local +libdir=$(prefix)/lib +luadir=$(libdir)/lua/5.1 CPPFLAGS=-I.. $(shell pkg-config --silence-errors --cflags lua5.1) LIBS=-L.. -luci $(shell pkg-config --silence-errors --libs lua5.1) @@ -19,8 +22,8 @@ uci.so: uci.o $(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC) -c -o $@ $< install: - mkdir -p $(DESTDIR)$(prefix)/lib/lua/5.1 - $(INSTALL) -m0644 uci.so $(DESTDIR)$(prefix)/lib/lua/5.1/ + mkdir -p $(DESTDIR)$(luadir) + $(INSTALL) -m0644 uci.so $(DESTDIR)$(luadir)/ clean: rm -f *.so *.o uci.so