Changeset c2e2d0c in freewrt for tools/Makefile


Ignore:
Timestamp:
Jul 22, 2006, 4:08:05 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
c746a832
Parents:
07526d20
Message:

sanitise the way tools which must be in lbin/ (currently,
sed and pax/cpio/tar, but there will be more...) are handled:
make prereq invokes a special recursive target install-lbin
which copies them from the staging dir into lbin if they exist
there (i.e. are already installed), or removes the install stamp
otherwise. the tools' install-lbin target does however duplicate
a little code, this could be done better but it works OK like this

also, add a missing include to brcm-utils and fix pax' clean target

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/Makefile

    r07526d20 rc2e2d0c  
    1 # $Id$
     1# $FreeWRT$
    22
    33include $(TOPDIR)/rules.mk
     
    1010
    1111TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
     12TARGETS_INSTALL_LBIN:=$(patsubst %,%-install-lbin,$(TARGETS))
    1213TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
    1314
    1415all: install
    15 install: check-lbin $(TARGETS_INSTALL)
     16install: $(TARGETS_INSTALL)
     17install-lbin: $(TARGETS_INSTALL_LBIN)
    1618clean: $(TARGETS_CLEAN)
    17 
    18 check-lbin:
    19         @[ -e ${TOPDIR}/lbin/sed ] || \
    20             rm -f $(TOOLS_STAMP_DIR)/.tools_sed-install
    21         @[ -e ${TOPDIR}/lbin/pax ] || \
    22             rm -f $(TOOLS_STAMP_DIR)/.tools_paxmirabilis-install
    2319
    2420$(STAGING_DIR):
     
    5955        @touch $(TOOLS_STAMP_DIR)/.tools_$@
    6056
     57%-install-lbin:
     58        $(TRACE) tools/$(patsubst %-install-lbin,%,$@)/install-lbin; \
     59        $(MAKE) -C $(patsubst %-install-lbin,%,$@) install-lbin \
     60            $(MAKE_TRACE)
     61
    6162%-clean:
    6263        $(TRACE) tools/$(patsubst %-clean,%,$@)/clean
Note: See TracChangeset for help on using the changeset viewer.