root/luci/trunk/contrib/uci/Makefile @ 3938

Revision 3938, 1.2 KB (checked in by Cyrus, 4 years ago)

Bump UCI

Line 
1include ../../build/config.mk
2include ../../build/gccconfig.mk
3
4UCI_VERSION  = 0.7.0
5UCI_SITE    = http://mirror2.openwrt.org/sources
6UCI_DIR     = uci-$(UCI_VERSION)
7UCI_FILE    = $(UCI_DIR).tar.gz
8UCI_URL     = $(UCI_SITE)/$(UCI_FILE)
9#UCI_GITREV   = c79cc497e7b0caa0f9f6a2c978fa9a5f0f097463
10#UCI_SITE     = http://nbd.name
11#UCI_DIR      = uci.git
12#UCI_FILE     = uci-$(UCI_VERSION)$(UCI_APPEND).tar.gz
13#UCI_URL      = $(UCI_SITE)/gitweb.cgi?p=uci.git;a=snapshot;h=$(UCI_GITREV)
14UCI_PATCHDIR = patches
15
16all: compile
17
18include ../../build/module.mk
19
20$(UCI_FILE):
21    wget -O $@ "$(UCI_URL)" || rm -f $@
22
23$(UCI_PATCHDIR)/series:
24    (cd $(UCI_PATCHDIR); ls *.patch | sort > series)
25
26$(UCI_DIR)/.prepared: $(UCI_FILE)
27    rm -rf $(UCI_DIR)
28    tar xvfz $(UCI_FILE)
29    touch $@
30
31compile: $(UCI_DIR)/.prepared
32    $(MAKE) -C $(UCI_DIR) CC=$(CC) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" OS="$(OS)"
33    mkdir -p dist/usr/lib dist/usr/bin
34    $(MAKE) -C $(UCI_DIR) install DESTDIR=../dist prefix=/usr
35    $(MAKE) -C $(UCI_DIR)/lua CC=$(CC) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" OS="$(OS)"
36    $(MAKE) -C $(UCI_DIR)/lua install DESTDIR=../../dist luadir=$(LUA_LIBRARYDIR)
37
38compile-all: compile
39
40clean:
41    rm -rf $(UCI_DIR) $(UCI_FILE)
Note: See TracBrowser for help on using the browser.