source: trunk/essentials/app-arch/cpio/tests/Makefile.am

Last change on this file was 3332, checked in by bird, 19 years ago

cpio 2.7

File size: 2.4 KB
Line 
1# Makefile for GNU cpio regression tests.
2
3# Copyright (C) 2004 Free Software Foundation, Inc.
4
5## This program is free software; you can redistribute it and/or modify
6## it under the terms of the GNU General Public License as published by
7## the Free Software Foundation; either version 2, or (at your option)
8## any later version.
9
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18## 02110-1301 USA.
19
20EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4
21DISTCLEANFILES = atconfig $(check_SCRIPTS)
22MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
23
24## ------------ ##
25## package.m4. ##
26## ------------ ##
27
28$(srcdir)/package.m4: $(top_srcdir)/configure.ac
29 { \
30 echo '# Signature of the current package.'; \
31 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
32 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
33 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
34 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
35 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
36 } >$(srcdir)/package.m4
37
38#
39
40## ------------ ##
41## Test suite. ##
42## ------------ ##
43
44TESTSUITE_AT = \
45 testsuite.at\
46 inout.at\
47 version.at
48
49TESTSUITE = $(srcdir)/testsuite
50
51AUTOTEST = $(AUTOM4TE) --language=autotest
52$(TESTSUITE): package.m4 $(TESTSUITE_AT)
53 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
54 mv $@.tmp $@
55
56atconfig: $(top_builddir)/config.status
57 cd $(top_builddir) && ./config.status tests/$@
58
59clean-local:
60 $(SHELL) $(TESTSUITE) --clean
61
62check-local: atconfig atlocal $(TESTSUITE)
63 $(SHELL) $(TESTSUITE)
64
65# Run the test suite on the *installed* tree.
66installcheck-local:
67 $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
68
69
70## ------------ ##
71## genfile ##
72## ------------ ##
73
74check_PROGRAMS = genfile
75
76genfile_SOURCES = genfile.c argcv.c argcv.h
77
78localedir = $(datadir)/locale
79INCLUDES = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/src
80AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
81
82LDADD = ../lib/libcpio.a $(LIBINTL) $(LIB_CLOCK_GETTIME)
83
Note: See TracBrowser for help on using the repository browser.