summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 97c82dd4830ddbaa9c51ea95a85f4c50e9264343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
SUBDIRS = m4 lib util po doc python dicts

EXTRA_DIST = \
		cracklib.spec.in \
		README-DAWG \
		README-WORDS \
		README-LICENSE \
		test-data 

DIST_TARGETS=dist-gzip dist-bzip2 dist-zip

all-local:
	@echo
	@echo =======================================================
	@echo Be sure and obtain a large wordlist file and run
	@echo 'make install' and 'make dict' to generate the word 
	@echo list index file. See the README file for more details.
	@echo =======================================================
	@echo

test: all
	@echo
	@echo =======================================================
	@echo If you get an error when running 'make test' about a 
	@echo missing pw_dict.pwd file, that indicates that the word
	@echo list dictionary file has not been built. You need to
	@echo at least run 'make install' and 'make dict' to install
	@echo the dictionay.  See the README file for more details.
	@echo =======================================================
	@echo
	util/cracklib-check < test-data

dict: all
	if test "x$(CROSS_COMPILING)" = "xno" ; then \
		export PATH="$(top_builddir)/util:$$PATH" ; \
		export LD_LIBRARY_PATH="$(top_builddir)/lib/.libs:$$LD_LIBRARY_PATH" ; \
	fi ; \
	create-cracklib-dict "$(srcdir)"/dicts/*

dict-local: all
	if test "x$(CROSS_COMPILING)" = "xno" ; then \
		export PATH="$(top_builddir)/util:$$PATH" ; \
		export LD_LIBRARY_PATH="$(top_builddir)/lib/.libs:$$LD_LIBRARY_PATH" ; \
	fi ; \
	cracklib-format "$(srcdir)"/dicts/* | cracklib-packer $(DESTDIR)/$(DEFAULT_CRACKLIB_DICT)

ACLOCAL_AMFLAGS = -I m4