Skip to content

Commit f634a60

Browse files
committed
fix(build): Avoid the perceived need for an extra automake cycle in dist tarball
1 parent 2e97057 commit f634a60

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎configure.ac‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,11 @@ AC_OUTPUT
290290

291291
AC_MSG_NOTICE([monkey-patching configure to ignore core directory])
292292
m4_esyscmd_s([build-aux/decore-automake.sh])
293+
294+
# Avoid the perceived need to run automake again when building from source
295+
# tarballs. The assorted AM include macros assume two passes are needed to
296+
# generate a makefile since one pass has to generate the includes and the
297+
# second one inlines them, but we're distributing a ready-to-use version and
298+
# hence one pass is enough. We can skip ahead and assume the Makefile template
299+
# is ready to go an this point, avoiding the need for autotools at all.
300+
AM_COND_IF([SOURCE_IS_DIST], [touch -r aminclude.am Makefile.in])

0 commit comments

Comments
 (0)