7f6f7645ca53c5b63c36f3a679ff10cad7d5e8c8
[platform/upstream/m4.git] / checks / Makefile.in
1 ## Makefile.in - template for building Makefile for M4 testsuite.
2 ##
3 ## Copyright (C) 1992-1994, 2006-2011 Free Software Foundation, Inc.
4 ##
5 ## This file is part of GNU M4.
6 ##
7 ## GNU M4 is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 3 of the License, or
10 ## (at your option) any later version.
11 ##
12 ## GNU M4 is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 @SET_MAKE@
21 PACKAGE = @PACKAGE@
22 VERSION = @VERSION@
23
24 SHELL = @SHELL@
25
26 bindir = @bindir@
27 exec_prefix = @exec_prefix@
28 prefix = @prefix@
29 srcdir = @srcdir@
30 VPATH = @srcdir@
31 PATH_SEPARATOR = @PATH_SEPARATOR@
32 program_transform_name = @program_transform_name@
33
34 # Should be GNU awk, for the get-them script.
35 AWK = @AWK@
36
37 # Vern says that the first star is required around an Alpha make bug.
38 DOC_CHECKS = $(srcdir)/*[0-9][0-9][0-9].*
39 CHECKS = $(DOC_CHECKS) $(srcdir)/stackovf.test
40 # Makefile.in is automatically distributed by automake.
41 DISTFILES = $(srcdir)/get-them $(srcdir)/check-them $(srcdir)/stamp-checks \
42         $(srcdir)/stackovf.test
43
44 all: $(srcdir)/stamp-checks
45
46 $(srcdir)/stamp-checks: $(srcdir)/get-them $(srcdir)/../doc/m4.texinfo
47         rm -f $(DOC_CHECKS)
48         cd $(srcdir) && AWK=$(AWK) ./get-them ../doc/m4.texinfo
49         touch $(srcdir)/stamp-checks
50
51 install:
52
53 dvi pdf ps html info:
54 install-dvi install-pdf install-ps install-html install-info:
55
56 uninstall:
57
58 check: $(srcdir)/stamp-checks
59         PATH=`pwd`/../src"$(PATH_SEPARATOR)"$$PATH; export PATH; \
60         $(srcdir)/check-them -I $(srcdir)/../examples $(CHECKS)
61
62 installcheck: $(srcdir)/stamp-checks
63         PATH='$(bindir)'"$(PATH_SEPARATOR)"$$PATH; export PATH; \
64         $(srcdir)/check-them -I $(srcdir)/../examples \
65         -m "`echo m4 | sed '$(program_transform_name)'`" $(CHECKS)
66
67 tags:
68
69 mostlyclean:
70
71 clean: mostlyclean
72
73 distclean: clean
74         rm -f Makefile
75
76 maintainer-clean realclean: distclean
77         rm -f $(DOC_CHECKS) $(srcdir)/stamp-checks
78
79 distdir: dist
80
81 dist: $(DISTFILES)
82         @echo "Copying distribution files"
83         @for file in $(DISTFILES) $(DOC_CHECKS); do \
84           ln $$file ../$(PACKAGE)-$(VERSION)/checks 2> /dev/null \
85             || cp -p $$file ../$(PACKAGE)-$(VERSION)/checks; \
86         done
87
88 Makefile: $(srcdir)/Makefile.in ../config.status
89         cd .. && ./config.status checks/$@
90
91 # Tell versions [3.59,3.63) of GNU make not to export all variables.
92 # Otherwise a system limit (for SysV at least) may be exceeded.
93 .NOEXPORT: