Skip to content

Commit

Permalink
freifunk-ui: simplify Makefile by using luci.mk from Luci-feed
Browse files Browse the repository at this point in the history
rely on freifunk-berlin-generic.mk as bridge
  • Loading branch information
SvenRoederer committed May 25, 2019
1 parent 506fd4d commit 59c3d66
Showing 1 changed file with 5 additions and 39 deletions.
44 changes: 5 additions & 39 deletions utils/luci-mod-freifunk-ui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,10 @@

include $(TOPDIR)/rules.mk

PKG_NAME:=luci-mod-freifunk-ui
PKG_VERSION:=0.0.4
PKG_RELEASE:=1
LUCI_TITLE:=Freifunk Public and Admin LuCI UI
LUCI_DEPENDS:=+luci-mod-admin-full +luci-lib-json +community-profiles
LUCI_PKGARCH:=all

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include ../../freifunk-berlin-generic.mk

include $(INCLUDE_DIR)/package.mk

define Package/luci-mod-freifunk-ui
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=2. Modules
TITLE:=Freifunk Public and Admin LuCI UI
DEPENDS:=+luci-mod-admin-full +luci-lib-json +community-profiles
PKGARCH:=all
endef

define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./luasrc $(PKG_BUILD_DIR)/
endef

define Build/Configure
endef

define Build/Compile
# $(MAKE) -C $(PKG_BUILD_DIR)/luasrc
endef

define Package/luci-mod-freifunk-ui/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view
$(CP) $(PKG_BUILD_DIR)/luasrc/controller/* $(1)/usr/lib/lua/luci/controller
$(CP) $(PKG_BUILD_DIR)/luasrc/model/* $(1)/usr/lib/lua/luci/model
$(CP) $(PKG_BUILD_DIR)/luasrc/view/* $(1)/usr/lib/lua/luci/view
$(INSTALL_DIR) $(1)/www
$(CP) ./htdocs/* $(1)/www
endef

$(eval $(call BuildPackage,luci-mod-freifunk-ui))
# call BuildPackage - OpenWrt buildroot signature

0 comments on commit 59c3d66

Please sign in to comment.