]> granicus.if.org Git - cracklib/blob - cracklib/Makefile.am
remove generated gettext files
[cracklib] / cracklib / Makefile.am
1 SUBDIRS = m4 lib util po doc python dicts
2
3 EXTRA_DIST = \
4                 cracklib.spec.in \
5                 README-DAWG \
6                 README-WORDS \
7                 README-LICENSE \
8                 test-data 
9
10 all-local:
11         @echo
12         @echo =======================================================
13         @echo Be sure and obtain a large wordlist file and run
14         @echo 'make install' and 'make dict' to generate the word 
15         @echo list index file. See the README file for more details.
16         @echo =======================================================
17         @echo
18
19 test: all
20         @echo
21         @echo =======================================================
22         @echo If you get an error when running 'make test' about a 
23         @echo missing pw_dict.pwd file, that indicates that the word
24         @echo list dictionary file has not been built. You need to
25         @echo at least run 'make install' and 'make dict' to install
26         @echo the dictionay.  See the README file for more details.
27         @echo =======================================================
28         @echo
29         util/cracklib-check < test-data
30
31 dict: all
32         if test "x$(CROSS_COMPILING)" = "xno" ; then \
33                 export PATH="$(top_builddir)/util:$$PATH" ; \
34                 export LD_LIBRARY_PATH="$(top_builddir)/lib/.libs:$$LD_LIBRARY_PATH" ; \
35         fi ; \
36         create-cracklib-dict "$(srcdir)"/dicts/*
37
38 dict-local: all
39         if test "x$(CROSS_COMPILING)" = "xno" ; then \
40                 export PATH="$(top_builddir)/util:$$PATH" ; \
41                 export LD_LIBRARY_PATH="$(top_builddir)/lib/.libs:$$LD_LIBRARY_PATH" ; \
42         fi ; \
43         cracklib-format "$(srcdir)"/dicts/* | cracklib-packer $(DESTDIR)/$(DEFAULT_CRACKLIB_DICT)
44
45 ACLOCAL_AMFLAGS = -I m4