common: Do not build maintainer modules in non-maintainer mode.

* common/Makefile.am (module_maint_tests): Use only in maintainer
mode.
(t_common_cflags): New.
This commit is contained in:
Werner Koch 2014-09-18 16:00:34 +02:00
parent cad181b5ec
commit 927db789c1
2 changed files with 9 additions and 1 deletions

View File

@ -181,13 +181,21 @@ module_tests = t-convert t-percent t-gettime t-sysutils t-sexputil \
if !HAVE_W32CE_SYSTEM
module_tests += t-exechelp
endif
if MAINTAINER_MODE
module_maint_tests = t-helpfile t-b64 t-http
else
module_maint_tests =
endif
t_common_cflags = $(KSBA_CFLAGS) $(LIBGCRYPT_CFLAGS) \
$(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS)
t_common_ldadd = libcommon.a ../gl/libgnu.a \
$(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) \
$(LIBINTL) $(LIBICONV)
# jnlib tests
t_stringhelp_SOURCES = t-stringhelp.c $(t_jnlib_src)
t_stringhelp_LDADD = $(t_common_ldadd)

View File

@ -226,7 +226,7 @@ main (int argc, char **argv)
}
if (argc != 1)
{
fprintf (stderr, PGM ": no or roo many URLS given\n");
fprintf (stderr, PGM ": no or too many URLS given\n");
exit (1);
}