diff options
author | Ade Lovett <ade@FreeBSD.org> | 2005-11-18 23:21:49 +0000 |
---|---|---|
committer | Ade Lovett <ade@FreeBSD.org> | 2005-11-18 23:21:49 +0000 |
commit | 7248fd146f82eb1186ad594ccd8bfe70086b8bfb (patch) | |
tree | 1989c07cca7e504d18ad4194827e3916cee6e567 /Mk | |
parent | - Attempt to fix build on pointyhat (diff) |
Rework the run-autotools target into a series of sub-targets, the
order of which can now be overriden.
PR: 86309 (slightly reworked)
Submitted by: thierry
Notes
Notes:
svn path=/head/; revision=148752
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.autotools.mk | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/Mk/bsd.autotools.mk b/Mk/bsd.autotools.mk index 265daa371a78..5f88afc3d0a1 100644 --- a/Mk/bsd.autotools.mk +++ b/Mk/bsd.autotools.mk @@ -323,25 +323,52 @@ ${item:U}_ENV+= ${AUTOTOOLS_VARS} # run-autotools # # Part of the configure set - run appropriate programs prior to -# the actual configure target if autotools are in use -# +# the actual configure target if autotools are in use. +# If needed, this target can be overridden, for example to change +# the order of autotools running. + .if !target(run-autotools) -run-autotools: +run-autotools:: run-autotools-aclocal run-autotools-automake \ + run-autotools-autoconf run-autotools-autoheader +.endif + +.if !target(run-autotools-aclocal) +run-autotools-aclocal: . if defined(AUTOTOOL_aclocal) @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \ ${ACLOCAL_ARGS}) +. else + @${DO_NADA} . endif +.endif + +.if !target(run-autotools-automake) +run-autotools-automake: . if defined(AUTOTOOL_automake) @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} \ ${AUTOMAKE_ARGS}) +. else + @${DO_NADA} . endif +.endif + +.if !target(run-autotools-autoconf) +run-autotools-autoconf: . if defined(AUTOTOOL_autoconf) @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} \ ${AUTOCONF_ARGS}) +. else + @${DO_NADA} . endif +.endif + +.if !target(run-autotools-autoheader) +run-autotools-autoheader: . if defined(AUTOTOOL_autoheader) @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER} \ ${AUTOHEADER_ARGS}) +. else + @${DO_NADA} . endif .endif @@ -349,7 +376,7 @@ run-autotools: # # Special target to automatically make libtool using ports use the # libtool port. See above for default values of LIBTOOLFILES. -# + .if !target(patch-autotools) patch-autotools: . if defined(AUTOTOOL_libtool_inc) |