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

AUTOMAKE_OPTIONS = 1.0

EXTRA_DIST = build-script.pl Trtest.pm
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 t*.in t*.exp
CLEANFILES = t*.out t*.err