Makefile 933 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=luci-base
  8. LUCI_TYPE:=mod
  9. LUCI_BASENAME:=base
  10. LUCI_TITLE:=LuCI core libraries
  11. 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
  12. PKG_LICENSE:=MIT
  13. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)
  14. include $(INCLUDE_DIR)/host-build.mk
  15. define Package/luci-base/conffiles
  16. /etc/luci-uploads
  17. /etc/config/luci
  18. /etc/config/ucitrack
  19. endef
  20. include ../../luci.mk
  21. define Host/Configure
  22. endef
  23. define Host/Compile
  24. $(MAKE) -C src/ clean po2lmo jsmin
  25. endef
  26. define Host/Install
  27. $(INSTALL_DIR) $(1)/bin
  28. $(INSTALL_BIN) src/po2lmo $(1)/bin/po2lmo
  29. $(INSTALL_BIN) src/jsmin $(1)/bin/jsmin
  30. endef
  31. $(eval $(call HostBuild))
  32. # call BuildPackage - OpenWrt buildroot signature