Changeset d419478 in freewrt for package/iptables-snmp/Makefile


Ignore:
Timestamp:
Jul 21, 2006, 1:56:32 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
50d34d3
Parents:
2029b2e
Message:
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/iptables-snmp/Makefile

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=http://www.nobiscuit.com/iptables-snmp
    1111PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    12 PKG_CAT:=zcat
    1312
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
    15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
    1613
    1714include $(TOPDIR)/package/rules.mk
     
    1916$(eval $(call PKG_template,IPTABLES_SNMP,iptables-snmp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    2017
    21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
    22         (cd $(PKG_BUILD_DIR); rm -f config.{cache,status}; \
     18$(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
     19        (cd $(WRKBUILD); rm -f config.{cache,status}; \
    2320                $(TARGET_CONFIGURE_OPTS) \
    2421                CFLAGS="$(TARGET_CFLAGS) " \
     
    4744        touch $@
    4845
    49 $(PKG_BUILD_DIR)/.built:
    50         rm -rf $(PKG_INSTALL_DIR)
    51         mkdir -p $(PKG_INSTALL_DIR)
    52         $(MAKE) -C $(PKG_BUILD_DIR) \
    53                 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
     46$(WRKBUILD)/.built:
     47        rm -rf $(WRKINST)
     48        mkdir -p $(WRKINST)
     49        $(MAKE) -C $(WRKBUILD) \
     50                INSTALL_PREFIX="$(WRKINST)" \
    5451                all install
    5552        touch $@
     
    5754$(IPKG_IPTABLES_SNMP):
    5855        install -d -m0755 $(IDIR_IPTABLES_SNMP)/usr/lib
    59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables-snmp.so $(IDIR_IPTABLES_SNMP)/usr/lib
     56        $(CP) $(WRKINST)/usr/lib/iptables-snmp.so $(IDIR_IPTABLES_SNMP)/usr/lib
    6057        $(RSTRIP) $(IDIR_IPTABLES_SNMP)
    6158        $(IPKG_BUILD) $(IDIR_IPTABLES_SNMP) $(PACKAGE_DIR)
    6259 
    6360mostlyclean:
    64         -$(MAKE) -C $(PKG_BUILD_DIR) clean
    65         rm $(PKG_BUILD_DIR)/.built
     61        -$(MAKE) -C $(WRKBUILD) clean
     62        rm $(WRKBUILD)/.built
Note: See TracChangeset for help on using the changeset viewer.