From 2d92e2478c08ceb7833adcd9074e9c1f5c66038c Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de> Date: Tue, 2 Jul 2019 08:41:48 +0200 Subject: [PATCH] Build CDI application for testing. --- Makefile.am | 5 +---- app/Makefile.am | 15 ++++++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index bac022edb..d77e1b883 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,9 +1,6 @@ ## Process this file with automake to produce Makefile.in # -SUBDIRS = src interfaces examples examples/pio tests -if ENABLE_CDI_APP -SUBDIRS += app -endif +SUBDIRS = src interfaces app examples examples/pio tests # EXTRA_DIST=config/default \ doc/cdi_cman.pdf \ diff --git a/app/Makefile.am b/app/Makefile.am index e84109b2c..d1ac60911 100644 --- a/app/Makefile.am +++ b/app/Makefile.am @@ -2,13 +2,18 @@ # bin_PROGRAMS = noinst_PROGRAMS = +check_PROGRAMS = +if ENABLE_CDI_APP if ENABLE_CDI_LIB - bin_PROGRAMS += cdi -else - noinst_PROGRAMS += cdi -endif +bin_PROGRAMS += cdi +else !ENABLE_CDI_LIB +noinst_PROGRAMS += cdi +endif !ENABLE_CDI_LIB +noinst_PROGRAMS += createtable +else !ENABLE_CDI_APP +check_PROGRAMS += cdi +endif !ENABLE_CDI_APP # -noinst_PROGRAMS += createtable # cdi_SOURCES = cdi.c printinfo.c printinfo.h cdi_LDADD = $(top_builddir)/src/libcdi.la @LIBS@ -- GitLab