2 # Copyright (C) 2022 Jo-Philipp Wich <jo@mein.io>
4 # This is free software, licensed under the Apache License, Version 2.0 .
7 include $(TOPDIR
)/rules.mk
14 LUCI_TITLE
:=LuCI core runtime
31 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/$(PKG_NAME
)
33 include $(INCLUDE_DIR
)/host-build.mk
35 define Package
/luci-base
/conffiles
41 define Package
/luci-base
/postinst
44 if
[ -z
"$${PKG_INSTROOT}" ] && [ -f
/etc
/config
/uhttpd
]; then
45 if
! uci
-q
get uhttpd.main.ucode_prefix | grep
-sq
/cgi-bin
/luci
; then
46 uci add_list uhttpd.main.ucode_prefix
='/cgi-bin/luci=/usr/share/ucode/luci/uhttpd.uc'
61 $(MAKE
) -C src
/ clean po2lmo jsmin
65 $(INSTALL_DIR
) $(1)/bin
66 $(INSTALL_BIN
) src
/po2lmo
$(1)/bin
/po2lmo
67 $(INSTALL_BIN
) src
/jsmin
$(1)/bin
/jsmin
70 $(eval
$(call HostBuild
))
72 # call BuildPackage - OpenWrt buildroot signature