mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #4913 from kareem-wolfssl/makeClean
Allow disabling forced 'make clean' at the end of ./configure.
This commit is contained in:
29
configure.ac
29
configure.ac
@ -6821,6 +6821,14 @@ AC_ARG_ENABLE([iotsafe-hwrng],
|
|||||||
[ ENABLED_IOTSAFE_HWRNG=no ]
|
[ ENABLED_IOTSAFE_HWRNG=no ]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Make clean
|
||||||
|
AC_ARG_ENABLE([makeclean],
|
||||||
|
[AS_HELP_STRING([--enable-makeclean], [Enables forced "make clean" at the
|
||||||
|
end of configure (default: enabled)])],
|
||||||
|
[ ENABLED_MAKECLEAN=$enableval ],
|
||||||
|
[ ENABLED_MAKECLEAN=yes ]
|
||||||
|
)
|
||||||
|
|
||||||
# User Settings
|
# User Settings
|
||||||
AC_ARG_ENABLE([usersettings],
|
AC_ARG_ENABLE([usersettings],
|
||||||
[AS_HELP_STRING([--enable-usersettings],[Use your own user_settings.h and do not add Makefile CFLAGS (default: disabled)])],
|
[AS_HELP_STRING([--enable-usersettings],[Use your own user_settings.h and do not add Makefile CFLAGS (default: disabled)])],
|
||||||
@ -7707,13 +7715,20 @@ AX_OUT_OF_TREE_FILE([wolfssl/wolfcrypt/port/intel/quickassist_mem.h])
|
|||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
# force make clean
|
if test "$ENABLED_MAKECLEAN" = "yes"
|
||||||
AC_MSG_NOTICE([---])
|
then
|
||||||
AC_MSG_NOTICE([Running make clean...])
|
# force make clean
|
||||||
if test "$verbose" = "yes"; then
|
AC_MSG_NOTICE([---])
|
||||||
make clean
|
AC_MSG_NOTICE([Running make clean...])
|
||||||
else
|
if test -z "$MAKE"; then
|
||||||
make clean >/dev/null
|
MAKE="make"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$verbose" = "yes"; then
|
||||||
|
$MAKE clean
|
||||||
|
else
|
||||||
|
$MAKE clean >/dev/null
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ENABLED_REPRODUCIBLE_BUILD" != "yes"
|
if test "$ENABLED_REPRODUCIBLE_BUILD" != "yes"
|
||||||
|
Reference in New Issue
Block a user