3 include $(top_srcdir)/Makefile.am.common
5 noinst_DATA = krb5.conf krb5.conf-sqlite krb5.conf-db3 krb5.conf-db1 krb5.conf-lmdb
7 noinst_SCRIPTS = have-db
9 check_SCRIPTS = loaddump-db add-modify-delete check-dbinfo check-aliases
11 TESTS = $(check_SCRIPTS)
13 do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \
14 -e 's,[@]top_builddir[@],$(top_builddir),g' \
15 -e 's,[@]objdir[@],$(top_builddir)/tests/db,g' \
16 -e 's,[@]default_db_type[@],$(db_type),g' \
17 -e 's,[@]db_type_preference[@],$(db_type_preference),g' \
18 -e 's,[@]EGREP[@],$(EGREP),g'
20 loaddump-db: loaddump-db.in Makefile
21 $(do_subst) < $(srcdir)/loaddump-db.in > loaddump-db.tmp
22 chmod +x loaddump-db.tmp
23 mv loaddump-db.tmp loaddump-db
25 add-modify-delete: add-modify-delete.in Makefile
26 $(do_subst) < $(srcdir)/add-modify-delete.in > add-modify-delete.tmp
27 chmod +x add-modify-delete.tmp
28 mv add-modify-delete.tmp add-modify-delete
30 check-dbinfo: check-dbinfo.in Makefile
31 $(do_subst) < $(srcdir)/check-dbinfo.in > check-dbinfo.tmp
32 chmod +x check-dbinfo.tmp
33 mv check-dbinfo.tmp check-dbinfo
35 check-aliases: check-aliases.in Makefile
36 $(do_subst) < $(srcdir)/check-aliases.in > check-aliases.tmp
37 chmod +x check-aliases.tmp
38 mv check-aliases.tmp check-aliases
40 have-db: have-db.in Makefile
41 $(do_subst) < $(srcdir)/have-db.in > have-db.tmp
43 mv have-db.tmp have-db
45 krb5.conf: krb5.conf.in Makefile
46 $(do_subst) -e 's,[@]type[@],,g' < $(srcdir)/krb5.conf.in > krb5.conf.tmp
47 mv krb5.conf.tmp krb5.conf
49 krb5.conf-sqlite: krb5.conf.in Makefile
50 $(do_subst) -e 's,[@]type[@],sqlite:,g' < $(srcdir)/krb5.conf.in > krb5.conf-sqlite.tmp
51 mv krb5.conf-sqlite.tmp krb5.conf-sqlite
53 krb5.conf-db3: krb5.conf.in Makefile
54 $(do_subst) -e 's,[@]type[@],db3:,g' < $(srcdir)/krb5.conf.in > krb5.conf-db3.tmp
55 mv krb5.conf-db3.tmp krb5.conf-db3
57 krb5.conf-db1: krb5.conf.in Makefile
58 $(do_subst) -e 's,[@]type[@],db1:,g' < $(srcdir)/krb5.conf.in > krb5.conf-db1.tmp
59 mv krb5.conf-db1.tmp krb5.conf-db1
61 krb5.conf-lmdb: krb5.conf.in Makefile
62 $(do_subst) -e 's,[@]type[@],lmdb:,g' < $(srcdir)/krb5.conf.in > krb5.conf-lmdb.tmp
63 mv krb5.conf-lmdb.tmp krb5.conf-lmdb
65 krb5-mit.conf: krb5-mit.conf.in Makefile
66 $(do_subst) < $(srcdir)/krb5-mit.conf.in > krb5-mit.conf.tmp
67 mv krb5-mit.conf.tmp krb5-mit.conf
79 krb5.conf krb5.conf.tmp \
80 krb5.conf-sqlite krb5.conf-sqlite.tmp \
81 krb5.conf-db3 krb5.conf-db3.tmp \
82 krb5.conf-db1 krb5.conf-db1.tmp \
83 krb5.conf-lmdb krb5.conf-lmdb.tmp \
84 krb5-mit.conf krb5-mit.conf.tmp \
95 add-modify-delete.in \
100 text-dump-known-ext \
102 text-dump-unknown-ext