build system refactoring in preparation for allowing packages to do host-build steps

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14610 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Felix Fietkau
2009-02-22 04:37:20 +00:00
parent 67c9c212e6
commit b892e1fb85
33 changed files with 493 additions and 460 deletions

View File

@@ -16,18 +16,18 @@ PKG_CAT:=zcat
include $(INCLUDE_DIR)/host-build.mk
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR)
endef
define Build/Install
$(MAKE) -C $(PKG_BUILD_DIR) install
define Host/Install
$(MAKE) -C $(HOST_BUILD_DIR) install
endef
define Build/Clean
$(MAKE) -C $(PKG_BUILD_DIR) uninstall
$(MAKE) -C $(PKG_BUILD_DIR) clean
$(call Build/Clean/Default)
define Host/Clean
$(MAKE) -C $(HOST_BUILD_DIR) uninstall
$(MAKE) -C $(HOST_BUILD_DIR) clean
$(call Host/Clean/Default)
endef
$(eval $(call HostBuild))