]> eyrie.org Git - kerberos/krb5-strength.git/commitdiff
Remove the need for tests/data/.placeholder
authorRuss Allbery <rra@stanford.edu>
Wed, 18 Sep 2013 23:30:27 +0000 (16:30 -0700)
committerRuss Allbery <rra@stanford.edu>
Thu, 19 Sep 2013 06:13:35 +0000 (23:13 -0700)
Just create the tests/data directory if needed before running
the packer to create the dictionary.

Makefile.am
configure.ac

index 84f66f370105bf6130a22bdc9fc617ec575d7183..bfaf2f45014c83091871f336b65555eb5747674c 100644 (file)
@@ -131,6 +131,7 @@ tests_portable_strlcpy_t_LDADD = tests/tap/libtap.a portable/libportable.la
 
 # The dictionary is used by the tests and needs to be built first.
 tests/data/dictionary.pwd: cracklib/packer $(srcdir)/tests/data/wordlist
+       mkdir -p tests/data
        cracklib/packer tests/data/dictionary < $(srcdir)/tests/data/wordlist
 
 check-local: $(check_PROGRAMS) tests/data/dictionary.pwd
index 29342a3a7463734beb26e6c354904cc784224faa..c81ed5784dede973495a53a6bc172f9459663ca6 100644 (file)
@@ -50,9 +50,6 @@ AC_CHECK_TYPES([ssize_t], [], [],
 RRA_FUNC_SNPRINTF
 AC_REPLACE_FUNCS([asprintf strlcat strlcpy])
 
-dnl Create the tests/data directory for builds outside the source directory.
-AC_CONFIG_COMMANDS([tests/data/.placeholder], [touch tests/data/.placeholder])
-
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_HEADER([config.h])
 AC_OUTPUT