1# Id 2 3include $(top_srcdir)/Makefile.am.common 4 5noinst_DATA = krb5.conf mit-pkinit-20070607.cf 6 7check_SCRIPTS = $(SCRIPT_TESTS) test_can 8 9SCRIPT_TESTS = check-can 10TESTS = $(SCRIPT_TESTS) 11 12port = 49188 13 14do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \ 15 -e 's,[@]port[@],$(port),g' \ 16 -e 's,[@]objdir[@],$(top_builddir)/tests/can,g' \ 17 -e 's,[@]EGREP[@],$(EGREP),g' \ 18 -e 's,[@]env_setup[@],$(top_builddir)/tests/bin/setup-env,g' 19 20test_can: test_can.in Makefile 21 $(do_subst) < $(srcdir)/test_can.in > test_can.tmp 22 chmod +x test_can.tmp 23 mv test_can.tmp test_can 24 25check-can: check-can.in Makefile 26 $(do_subst) < $(srcdir)/check-can.in > check-can.tmp 27 chmod +x check-can.tmp 28 mv check-can.tmp check-can 29 30krb5.conf: krb5.conf.in Makefile 31 $(do_subst) < $(srcdir)/krb5.conf.in > krb5.conf.tmp 32 mv krb5.conf.tmp krb5.conf 33 34SUFFIXES += .xf .cf 35 36.xf.cf: 37 $(do_subst) < $< > $@.tmp 38 mv $@.tmp $@ 39 40CLEANFILES= $(TESTS) *.tmp *.cf \ 41 current-db* \ 42 krb5.conf \ 43 messages.log \ 44 test_can 45 46EXTRA_DIST = \ 47 NTMakefile \ 48 apple-10.4.kadm \ 49 apple-10.4.req \ 50 check-can.in \ 51 heim-0.8.kadm \ 52 heim-0.8.req \ 53 krb5.conf.in \ 54 mit-pkinit-20070607.ca.crt \ 55 mit-pkinit-20070607.kadm \ 56 mit-pkinit-20070607.req \ 57 mit-pkinit-20070607.xf \ 58 test_can.in 59