Merge pull request #1951 from tano-systems/luci-base-network-fix
[oweals/luci.git] / modules / luci-base / Makefile
1 #
2 # Copyright (C) 2008-2015 The LuCI Team <luci@lists.subsignal.org>
3 #
4 # This is free software, licensed under the Apache License, Version 2.0 .
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=luci-base
10
11 LUCI_TYPE:=mod
12 LUCI_BASENAME:=base
13
14 LUCI_TITLE:=LuCI core libraries
15 LUCI_DEPENDS:=+lua +luci-lib-nixio +luci-lib-ip +rpcd +libubus-lua +luci-lib-jsonc +liblucihttp-lua +rpcd-mod-file +rpcd-mod-luci +cgi-io
16
17 PKG_LICENSE:=MIT
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 define Package/luci-base/conffiles
22 /etc/luci-uploads
23 /etc/config/luci
24 /etc/config/ucitrack
25 endef
26
27 include ../../luci.mk
28
29 define Host/Configure
30 endef
31
32 define Host/Compile
33         $(MAKE) -C src/ clean po2lmo jsmin
34 endef
35
36 define Host/Install
37         $(INSTALL_DIR) $(1)/bin
38         $(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo
39         $(INSTALL_BIN) src/jsmin $(1)/bin/jsmin
40 endef
41
42 $(eval $(call HostBuild))
43
44 # call BuildPackage - OpenWrt buildroot signature