move the automake inter-dependencies to another file.

checked by naddy@ on a full build.
idea okay'ed by naddy and pvalchev.
This commit is contained in:
espie 2004-06-06 11:49:08 +00:00
parent 29e207a50c
commit f19cb223c7
3 changed files with 51 additions and 19 deletions

View File

@ -0,0 +1,31 @@
# $OpenBSD: automake.dep,v 1.1 2004/06/06 11:49:08 espie Exp $
configure configure.ac
configure configure.in
/Makefile.in /Makefile.am
/Makefile.in configure.in
/Makefile.in configure.ac
/Makefile.in aclocal.m4
aclocal.m4 configure.in
aclocal.m4 configure.ac
aclocal.m4 acinclude.m4
config.h.in configure.in
config.h.in configure.ac
config.h.in aclocal.m4
configure configure.in
configure configure.ac
configure aclocal.m4
stamp-h.in configure.in
stamp-h.in configure.ac
stamp-h.in aclocal.m4
stamp-h.in acconfig.h
# kde files
acinclude.m4 admin/cvs.sh
configure.in admin/cvs.sh
/Makefile.am admin/cvs.sh
subdirs admin/cvs.sh
/Makefile.am subdirs
configure.files subdirs
configure.in configure.files
acinclude.m4 admin/libtool.m4.in
acinclude.m4 admin/acinclude.m4.in
acinclude.m4 libltdl/ltdl.m4

View File

@ -1,6 +1,6 @@
#-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# $OpenBSD: bsd.port.mk,v 1.616 2004/06/01 21:06:29 jolan Exp $
# $OpenBSD: bsd.port.mk,v 1.617 2004/06/06 11:49:08 espie Exp $
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -1105,6 +1105,7 @@ _LIB_DEP2= ${LIB_DEPENDS}
README_NAME?= ${TEMPLATES}/README.port
REORDER_DEPENDENCIES?=
###
### end of variable setup. Only targets now
###
@ -1638,6 +1639,22 @@ ${_PATCH_COOKIE}: ${_EXTRACT_COOKIE}
@${MOD${_m:U}_post-patch}
. endif
.endfor
.if !empty(REORDER_DEPENDENCIES)
sed -e '/^#/d' ${REORDER_DEPENDENCIES} | \
tsort -r|while read f; do \
cd ${WRKSRC}; \
case $$f in \
/*) \
find . -name $${f#/} -print| while read i; \
do echo "Touching $$i"; touch $$i; done \
;; \
*) \
if test -e $$f ; then \
echo "Touching $$f"; touch $$f; \
fi \
;; \
esac; done
.endif
.if ${PATCH_CHECK_ONLY:L} != "yes"
@${_MAKE_COOKIE} $@
.endif

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# $OpenBSD: gnu.port.mk,v 1.18 2004/05/05 11:17:22 espie Exp $
# $OpenBSD: gnu.port.mk,v 1.19 2004/06/06 11:49:08 espie Exp $
# Based on bsd.port.mk, originally by Jordan K. Hubbard.
# This file is in the public domain.
@ -59,11 +59,6 @@ CONFIGURE_ARGS+= --sysconfdir='${SYSCONFDIR}'
REGRESS_TARGET?= check
# Files to touch in order...
MODGNU_AUTOCONF_FILES?= /Makefile.am configure.files configure.in configure.ac \
acinclude.m4 aclocal.m4 acconfig.h stamp-h.in \
config.h.in /Makefile.in configure
# internal stuff to run on each directory.
MODGNU_post-patch= for d in ${AUTOCONF_DIR}; do cd $$d; ${_MODGNU_loop} done;
_MODGNU_loop=
@ -82,18 +77,7 @@ _MODGNU_loop+= echo "Running autoheader-${AUTOCONF_VERSION} in $$d";
_MODGNU_loop+= ${_SYSTRACE_CMD} ${SETENV} ${AUTOCONF_ENV} ${AUTOHEADER};
. endif
. if !${CONFIGURE_STYLE:L:Mautomake}
_MODGNU_loop+= for f in ${MODGNU_AUTOCONF_FILES}; do \
case $$f in \
/*) \
find . -name $${f\#/} -print| while read i; \
do echo "Touching $$i"; touch $$i; done \
;; \
*) \
if test -e $$f ; then \
echo "Touching $$f"; touch $$f; \
fi \
;; \
esac; done;
REORDER_DEPENDENCIES+=${PORTSDIR}/infrastructure/mk/automake.dep
. endif
. endif
. endif