.
[coreutils.git] / tests / sort / Makefile.am
blob80fc45b246fe3ef824f3dec37d5b4ca618ebdd2f
1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = 1.1
5 x = sort
6 t = \
7   t01a t02a t02b t02c t02d t02e t02f t03a t03b t03c t03d t03e t03f t03g \
8   t03h t03i t04a t04b t04c t04d t04e t05a t05b t05c t05d t05e t05f t06a t06b \
9   t06c t06d t06e t06f t07a t07b t07c t07d t08a t08b t09a t09b t09c t09d t10a \
10   t10a0 t10a1 t10a2 t10b t10c t10d t10e t10f t10g t11a t11b t11c t11d t12a \
11   t12b t12c t12d t13a t13b t14a t14b t15a t15b t15c t15d t15e t16a
13 in = $(t:=.in)
14 exp = $(t:=.exp)
15 out = $(t:=.out)
16 err = $(t:=.err)
18 EXTRA_DIST = build-script.pl Test.pm $x-tests $(in) $(exp)
19 noinst_SCRIPTS = $x-tests
21 PERL = @PERL@
22 editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,@srcdir@,g'
24 TESTS = $x-tests
26 $x-tests: @MAINT@ build-script Test.pm
27         ./build-script ../../src/$x > $@.n
28         mv $@.n $@
29         chmod 755 $@
31 SUFFIXES = .pl
33 .pl:
34         rm -f $@ $@.tmp
35         $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
37 MAINTAINERCLEANFILES = $x-tests $(in) $(exp)
38 CLEANFILES = $(out) $(err)