summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/tests/can/Makefile.am
blob: 8caf29315f712f33268e6284d99cdafe067f1452 (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
# $Id$

include $(top_srcdir)/Makefile.am.common

noinst_DATA = krb5.conf mit-pkinit-20070607.cf

check_SCRIPTS = $(SCRIPT_TESTS) test_can

SCRIPT_TESTS = check-can
TESTS = $(SCRIPT_TESTS)

port = 49188

do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \
	-e 's,[@]port[@],$(port),g' \
	-e 's,[@]objdir[@],$(top_builddir)/tests/can,g' \
	-e 's,[@]EGREP[@],$(EGREP),g' \
	-e 's,[@]env_setup[@],$(top_builddir)/tests/bin/setup-env,g'

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

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

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

SUFFIXES += .xf .cf

.xf.cf:
	$(do_subst) < $< > $@.tmp
	mv $@.tmp $@

CLEANFILES= $(TESTS) *.tmp *.cf \
	current-db* \
	krb5.conf \
	messages.log \
	test_can

EXTRA_DIST = \
	NTMakefile \
	apple-10.4.kadm \
	apple-10.4.req \
	check-can.in \
	heim-0.8.kadm \
	heim-0.8.req \
	krb5.conf.in \
	mit-pkinit-20070607.ca.crt \
	mit-pkinit-20070607.kadm \
	mit-pkinit-20070607.req \
	mit-pkinit-20070607.xf \
	test_can.in