update from savannah
[coreutils.git] / tests / general / Makefile.am
blob67f95d5852692d7a7377efc7ae5063a270718347
1 ## Process this file with automake to create Makefile.in.
3 ## Makefile for Autoconf testsuite.
4 ## Copyright 2000, 2003 Free Software Foundation, Inc.
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA
19 ## 02111-1307, USA.
21 AUTOMAKE_OPTIONS = gnits
23 SUITE = suite.at dd.at m4sh.at
25 EXTRA_DIST = $(SUITE) testsuite
27 TESTS_ENVIRONMENT = \
28   PATH="`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
30 TESTS = testsuite
32 check-local: atconfig
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 $@
41 DISTCLEANFILES = atconfig