Changeset 12512


Ignore:
Timestamp:
2008-09-03T15:19:50+02:00 (8 years ago)
Author:
nbd
Message:

add default Build/Install template, which is activated by setting PKG_INSTALL=1

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/package-defaults.mk

    r12148 r12512  
    103103        ARCH="$(ARCH)" 
    104104 
     105MAKE_INSTALL_FLAGS = \ 
     106        $(MAKE_FLAGS) \ 
     107        DESTDIR="$(PKG_INSTALL_DIR)" 
     108 
    105109MAKE_PATH = . 
    106110 
     
    111115                $(1); 
    112116endef 
     117 
     118define Build/Install/Default 
     119        $(MAKE_VARS) \ 
     120        $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \ 
     121                $(MAKE_INSTALL_FLAGS) \ 
     122                $(1) install; 
     123endef 
  • trunk/include/package.mk

    r12452 r12512  
    151151endef 
    152152 
    153 define Build/Prepare 
    154   $(call Build/Prepare/Default,) 
    155 endef 
    156  
    157 define Build/Configure 
    158   $(call Build/Configure/Default,) 
    159 endef 
    160  
    161 define Build/Compile 
    162   $(call Build/Compile/Default,) 
    163 endef 
     153Build/Prepare=$(call Build/Prepare/Default,) 
     154Build/Configure=$(call Build/Configure/Default,) 
     155Build/Compile=$(call Build/Compile/Default,) 
     156Build/Install=$(if $(PKG_INSTALL),$(call Build/Install/Default,)) 
    164157 
    165158$(PACKAGE_DIR): 
Note: See TracChangeset for help on using the changeset viewer.