Commit 76590a41 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add option to build example programs only on demand.

parent a2a93924
......@@ -848,8 +848,23 @@ AC_ARG_WITH([on-demand-check-programs],
[with_on_demand_check_programs=no])
AM_CONDITIONAL([with_on_demand_check_programs],
[test x$with_on_demand_check_programs = xyes])
dnl
dnl
dnl add flag to disable automatic creation of example programs
AC_ARG_WITH([example-programs],
[AS_HELP_STRING([--without-example-programs],
[only build example programs when calling make examples in examples directory (default: build during make all)])],
[AS_CASE([$withval],
[yes|no],,
[n],[with_example_programs=no],
[y],[with_example_programs=yes],
[AC_MSG_FAILURE([unexpected value for --with-example-programs: '$withval'])])],
[with_example_programs=yes])
AM_CONDITIONAL([with_example_programs],
[test x$with_example_programs = xyes])
dnl
dnl
dnl
AR="${AR:-ar}"
ARFLAGS="${ARFLAGS:-cru}"
AC_SUBST([AR])
......
......@@ -28,18 +28,24 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
noinst_PROGRAMS = show_ieee_emulation \
EXTRA_PROGRAMS = show_ieee_emulation \
check_prng \
check_prng_f \
graph_build
noinst_PROGRAMS =
if with_example_programs
noinst_PROGRAMS += $(EXTRA_PROGRAMS)
endif
examples: $(EXTRA_PROGRAMS)
makef90depend_ignore_args = \
--ignore-module=ieee_arithmetic \
--ignore-module=iso_c_binding \
--ignore-module=omp_lib
if USE_METIS
noinst_PROGRAMS += \
EXTRA_PROGRAMS += \
graph_partition
else
makef90depend_ignore_args += --ignore-module=ppm_graph_partition_serial
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment