Commit from LuCI Translation Portal by user jow.: 4 of 4 messages translated (0 fuzzy).
[project/luci.git] / contrib / uhttpd / Makefile
1 include ../../build/config.mk
2 include ../../build/gccconfig.mk
3
4 UHTTPD_SRC              = svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src
5 UHTTPD_DIR              = uhttpd-src
6 UHTTPD_PATCHDIR = patches
7
8 all: compile
9
10 include ../../build/module.mk
11
12 $(UHTTPD_DIR)/Makefile:
13         svn co $(UHTTPD_SRC) $(UHTTPD_DIR)
14
15 $(UHTTPD_DIR)/.prepared: $(UHTTPD_DIR)/Makefile
16         (cd $(UHTTPD_PATCHDIR); ls *.patch | sort > series) || true
17         [ -f "$(UHTTPD_PATCHDIR)/series" ] && while read patch; do \
18                 patch -d $(UHTTPD_DIR) -p1 < $(UHTTPD_PATCHDIR)/$$patch; \
19         done < $(UHTTPD_PATCHDIR)/series || true
20         touch $@
21
22 compile: $(UHTTPD_DIR)/.prepared
23         (cd $(UHTTPD_DIR); $(MAKE) LUA_SUPPORT=0 TLS_SUPPORT=0 CGI_SUPPORT=1)
24         mkdir -p dist/usr/sbin
25         cp $(UHTTPD_DIR)/uhttpd dist/usr/sbin
26
27 compile-all: compile
28
29 clean:
30         rm -rf $(UHTTPD_DIR)