Changeset 62f9c95 in freewrt for mk


Ignore:
Timestamp:
Jun 4, 2007, 1:20:00 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
5ecbb4f4
Parents:
5aa46f7
Message:

bring over Marc Espie's autotoucher from MirPorts Framework

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mk/pkg-bottom.mk

    r5aa46f7 r62f9c95  
    1616#   making the Makefiles of the packages more clear
    1717
     18ifneq ($(filter gnu,${CONFIGURE_STYLE}),)
     19REORDER_DEPENDENCIES+=  ${TOPDIR}/scripts/automake.dep
     20endif
     21
     22REORDER_DEPENDENCIES?=
     23
    1824#--- configure
    1925pre-configure:
     
    2127post-configure:
    2228${_CONFIGURE_COOKIE}: ${_PATCH_COOKIE}
     29ifneq ($(strip ${REORDER_DEPENDENCIES}),)
     30        @sed -e '/^#/d' ${REORDER_DEPENDENCIES} | \
     31            tsort -r | while read f; do \
     32                cd ${WRKSRC}; \
     33                case $$f in \
     34                /*) \
     35                        find . -name "$${f#/}" -print | while read i; do \
     36                                echo "Touching $$i"; touch "$$i"; \
     37                        done;; \
     38                *) \
     39                        if test -e "$$f" ; then \
     40                                echo "Touching $$f"; touch "$$f"; \
     41                        fi;; \
     42                esac; \
     43        done
     44endif
    2345        mkdir -p ${WRKBUILD}
    2446        @${MAKE} pre-configure
Note: See TracChangeset for help on using the changeset viewer.