# add the .git and .github dirs to metamakes ignoredirs # detect if aros is built in the source tree and display a warning in configure. detect if it is build in a sub-directory of the source tree and add that directory to metamakes ignoredirs.

This commit is contained in:
Kalamatee 2022-06-19 00:20:09 +01:00 committed by deadwood
parent 3ef2a37207
commit 756e532831
3 changed files with 5612 additions and 4362 deletions

9946
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,9 @@ AC_PREREQ([2.69])
AC_CONFIG_AUX_DIR(scripts/autoconf)
AC_CONFIG_MACRO_DIR(scripts/autoconf/m4)
export_newline="
"
CONFIG_DT=`date -u "+%d/%m/%Y %T"`
AC_MSG_NOTICE([date/time (UTC)... $CONFIG_DT])
@ -77,6 +80,16 @@ srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
SRCDIR=${srcpwd}
AC_MSG_RESULT($SRCDIR)
IS_INSUBDIR=`echo $AROS_BUILDDIR | sed "s|$SRCDIR||"`
if test "x$IS_INSUBDIR" != "x$AROS_BUILDDIR" ; then
if test "x$IS_INSUBDIR" != "x" ; then
ignore_dir=`echo $AROS_BUILDDIR | sed "s|$SRCDIR/||"`
mmake_ignore_dirs="$export_newline""ignoredir $ignore_dir"
else
AC_MSG_WARN([Detected build inside the source tree - consider building in a separate dir])
fi
fi
# Parse the target field into something useful.
changequote(<<,>>)
target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
@ -789,8 +802,6 @@ dnl particular target.
test_kernel_cc=no
aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
export_newline="
"
aros_elf_translate=
aros_warn_flags=
@ -3600,9 +3611,12 @@ AC_SUBST(aros_host_sdl_libs)
# USB3.0 code
AC_SUBST(aros_usb30_code)
# The preference set option(s)..
# The preference set option(s)...
AC_SUBST(config_prefs_set)
# Additional directories metamake needs to ignore...
AC_SUBST(mmake_ignore_dirs)
dnl Prepare for output, make up all the generated patches
case "$aros_flavour" in
emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"

View File

@ -11,9 +11,11 @@ globalvarfile $(TOP)/bin/$(AROS_HOST_ARCH)-$(AROS_HOST_CPU)/gen/host/config/host
globalvarfile $(TOP)/bin/$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU)@aros_target_suffix@/gen/config/target.cfg
genglobalvarfile sh $(TOP)/configure
ignoredir .git
ignoredir .github
ignoredir .svn
ignoredir .unmaintained
ignoredir CVS
ignoredir bin
ignoredir intuition.morphos
ignoredir .svn
ignoredir .unmaintained
ignoredir distfiles
ignoredir distfiles@mmake_ignore_dirs@