summaryrefslogtreecommitdiff
path: root/tests/tr/Makefile.am
blob: 953ca734850568725583f9d3ef69a0c2734af545 (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
## Process this file with automake to produce Makefile.in.

AUTOMAKE_OPTIONS = 1.0

in = \
  t1.in t2.in t3.in t4.in t5.in t6.in t7.in t8.in t9.in tA.in tB.in \
  tC.in tD.in tE.in tF.in tG.in tH.in tI.in tR0.0.in tR0.1.in tR1.0.in \
  tR1.1.in tR2.in tR3.in tR4.in tR5.in tR6.in ta.in tb.in tc.in td.in \
  te.in tf.in tg.in th.in ti.in tj.in tk.in tl.in tm.in tn.in to.in \
  tp.in tq.in tr.in ts.in tt.in tu.in tv.in tw.in tx.in ty.in tz.in

exp = $(in:.in=.exp)
out = $(in:.in=.out)
err = $(in:.in=.err)

EXTRA_DIST = build-script.pl Trtest.pm $(in) $(exp)
noinst_SCRIPTS = tr-tests

PERL = @PERL@
editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,@srcdir@,g'

TESTS = tr-tests

tr-tests: build-script Trtest.pm
	./build-script > $@.n
	mv $@.n $@
	chmod 755 $@

SUFFIXES = .pl

.pl:
	rm -f $@ $@.tmp
	$(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@

MAINTAINERCLEANFILES = tr-tests $(in) $(exp)
CLEANFILES = $(out) $(err)