From 4e53d007bf30dddad1a2e1b44aa55d3ca8671ae4 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 28 May 2008 19:37:43 +0000 Subject: * Reworked Makefiles * Introduced following targets: build: gccbuild luabuild gccbuild: compile luabuild: luasource||luacompile * Removed requirement for lua-headers respecting lua-only builds * Split compile part of OpenWRT Makefile --- contrib/package/luci/Makefile | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'contrib') diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index f2a26245db..997b9f901f 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -25,11 +25,12 @@ include $(INCLUDE_DIR)/package.mk define Build/Configure endef -define Build/Compile - $(MAKE) -C$(PKG_BUILD_DIR) build LUA_TARGET=$(LUA_TARGET) +define Package/luci/compiletpl + ifneq ($(CONFIG_PACKAGE_$(1)),) + $(MAKE) -C$(PKG_BUILD_DIR)/$(2) build LUA_TARGET=$(LUA_TARGET) + endif endef - ### Templates ### define Package/luci/libtemplate @@ -115,6 +116,8 @@ define Package/luci-ff-halle endef define Package/luci-ff-halle/install + $(call Package/luci/install/template,$(1),applications/community-halle) + $(CP) -a ./ipkg/luci-ff-halle.postinst $(1)/CONTROL/postinst endef @@ -270,6 +273,26 @@ define Package/luci-sgi-webuci/install endef +define Build/Compile + $(call Package/luci/compiletpl,luci-core,libs/core) + $(call Package/luci/compiletpl,luci-cbi,libs/cbi) + $(call Package/luci/compiletpl,luci-web,libs/web) + + $(call Package/luci/compiletpl,luci-ff-halle,applications/community-halle) + $(call Package/luci/compiletpl,luci-ff-leipzig,applications/community-leipzig) + $(call Package/luci/compiletpl,luci-ff-hannover,applications/community-hannover) + + $(call Package/luci/compiletpl,luci-mod-admin-core,modules/admin-core) + $(call Package/luci/compiletpl,luci-mod-freifunk,modules/freifunk) + + $(call Package/luci/compiletpl,luci-app-ffwizard-leipzig,applications/luci-ffwizard-leipzig) + $(call Package/luci/compiletpl,luci-app-firewall,applications/luci-fw) + $(call Package/luci/compiletpl,luci-app-splash,applications/luci-splash) + $(call Package/luci/compiletpl,luci-app-statistics,applications/luci-statistics) + + $(call Package/luci/compiletpl,luci-sgi-haserl,libs/sgi-haserl) + $(call Package/luci/compiletpl,luci-sgi-webuci,libs/sgi-webuci) +endef $(eval $(call BuildPackage,luci-core)) -- cgit v1.2.3