summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/tests/db/Makefile.am
blob: 9597a0b441168c33502c25e0186361fd88491cbd (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# $Id$

include $(top_srcdir)/Makefile.am.common

noinst_DATA = krb5.conf krb5.conf-sqlite krb5.conf-db3 krb5.conf-db1 krb5.conf-lmdb

noinst_SCRIPTS = have-db

check_SCRIPTS = loaddump-db add-modify-delete check-dbinfo check-aliases

TESTS = $(check_SCRIPTS) 

do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \
	-e 's,[@]top_builddir[@],$(top_builddir),g' \
	-e 's,[@]objdir[@],$(top_builddir)/tests/db,g' \
	-e 's,[@]default_db_type[@],$(db_type),g' \
	-e 's,[@]db_type_preference[@],$(db_type_preference),g' \
	-e 's,[@]EGREP[@],$(EGREP),g' 

loaddump-db: loaddump-db.in Makefile
	$(do_subst) < $(srcdir)/loaddump-db.in > loaddump-db.tmp
	chmod +x loaddump-db.tmp
	mv loaddump-db.tmp loaddump-db

add-modify-delete: add-modify-delete.in Makefile
	$(do_subst) < $(srcdir)/add-modify-delete.in > add-modify-delete.tmp
	chmod +x add-modify-delete.tmp
	mv add-modify-delete.tmp add-modify-delete

check-dbinfo: check-dbinfo.in Makefile
	$(do_subst) < $(srcdir)/check-dbinfo.in > check-dbinfo.tmp
	chmod +x check-dbinfo.tmp
	mv check-dbinfo.tmp check-dbinfo

check-aliases: check-aliases.in Makefile
	$(do_subst) < $(srcdir)/check-aliases.in > check-aliases.tmp
	chmod +x check-aliases.tmp
	mv check-aliases.tmp check-aliases

have-db: have-db.in Makefile
	$(do_subst) < $(srcdir)/have-db.in > have-db.tmp
	chmod +x have-db.tmp
	mv have-db.tmp have-db

krb5.conf: krb5.conf.in Makefile
	$(do_subst) -e 's,[@]type[@],,g' < $(srcdir)/krb5.conf.in > krb5.conf.tmp
	mv krb5.conf.tmp krb5.conf

krb5.conf-sqlite: krb5.conf.in Makefile
	$(do_subst) -e 's,[@]type[@],sqlite:,g' < $(srcdir)/krb5.conf.in > krb5.conf-sqlite.tmp
	mv krb5.conf-sqlite.tmp krb5.conf-sqlite

krb5.conf-db3: krb5.conf.in Makefile
	$(do_subst) -e 's,[@]type[@],db3:,g' < $(srcdir)/krb5.conf.in > krb5.conf-db3.tmp
	mv krb5.conf-db3.tmp krb5.conf-db3

krb5.conf-db1: krb5.conf.in Makefile
	$(do_subst) -e 's,[@]type[@],db1:,g' < $(srcdir)/krb5.conf.in > krb5.conf-db1.tmp
	mv krb5.conf-db1.tmp krb5.conf-db1

krb5.conf-lmdb: krb5.conf.in Makefile
	$(do_subst) -e 's,[@]type[@],lmdb:,g' < $(srcdir)/krb5.conf.in > krb5.conf-lmdb.tmp
	mv krb5.conf-lmdb.tmp krb5.conf-lmdb

krb5-mit.conf: krb5-mit.conf.in Makefile
	$(do_subst) < $(srcdir)/krb5-mit.conf.in > krb5-mit.conf.tmp
	mv krb5-mit.conf.tmp krb5-mit.conf


CLEANFILES= \
	$(TESTS) \
	have-db \
	db-dump* \
	dbinfo.out \
	current-db* \
	out-text-dump* \
	out-current-* \
	mkey.file* \
	krb5.conf krb5.conf.tmp \
	krb5.conf-sqlite krb5.conf-sqlite.tmp \
	krb5.conf-db3 krb5.conf-db3.tmp \
	krb5.conf-db1 krb5.conf-db1.tmp \
	krb5.conf-lmdb krb5.conf-lmdb.tmp \
	krb5-mit.conf krb5-mit.conf.tmp \
	tempfile \
	log.current-db* \
	heimdal-db* \
	messages.log

EXTRA_DIST = \
	NTMakefile \
	check-aliases.in \
	check-dbinfo.in \
	loaddump-db.in \
	add-modify-delete.in \
	have-db.in \
	krb5.conf.in \
	krb5-mit.conf.in \
	text-dump-0.7 \
	text-dump-known-ext \
	text-dump-no-ext \
	text-dump-unknown-ext