e5679eaa61b438a3bca5fd2b51facf4b53e6b2a2
[platform/upstream/coreutils.git] / tests / general / Makefile.am
1 ## Process this file with automake to create Makefile.in.
2
3 ## Makefile for Autoconf testsuite.
4 ## Copyright 2000, 2003 Free Software Foundation, Inc.
5
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2, or (at your option)
9 ## any later version.
10
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 ## 02110-1301, USA.
20
21 AUTOMAKE_OPTIONS = gnits
22
23 SUITE = suite.at dd.at m4sh.at
24
25 EXTRA_DIST = $(SUITE) testsuite
26
27 TESTS_ENVIRONMENT = \
28   PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
29
30 TESTS = testsuite
31
32 check-local: atconfig
33
34 testsuite: $(SUITE) atgeneral.m4
35         $(M4) -I $(srcdir) atgeneral.m4 suite.at > $@-t1
36         sed 's/[         ]*$$//;/^$$/N;/\n$$/D' $@-t1 > $@-tmp
37         rm -f $@-t1
38         chmod +x $@-tmp
39         mv $@-tmp $@
40
41 DISTCLEANFILES = atconfig