pkglibexecdir = $(libexecdir)/dovecot
pkglibexec_PROGRAMS = director
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-auth \
-I$(top_srcdir)/src/lib-imap \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-master \
-I$(top_srcdir)/src/lib-mail \
-I$(top_srcdir)/src/lib-program-client \
$(BINARY_CFLAGS)
director_LDADD = $(LIBDOVECOT) \
$(BINARY_LDFLAGS)
director_DEPENDENCIES = $(LIBDOVECOT_DEPS)
director_SOURCES = \
main.c \
noinst_HEADERS = \
noinst_PROGRAMS = director-test $(test_programs)
director_test_LDADD = $(LIBDOVECOT)
director_test_DEPENDENCIES = $(LIBDOVECOT_DEPS)
director_test_SOURCES = \
test_programs = \
test-user-directory
test_libs = \
test_user_directory_SOURCES = test-user-directory.c
test_user_directory_LDADD = user-directory.o $(test_libs)
test_user_directory_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs)
check-local:
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done