1 ## Makefile.in - template for building Makefile for M4 testsuite.
3 ## Copyright (C) 1992-1994, 2006-2011 Free Software Foundation, Inc.
5 ## This file is part of GNU M4.
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.
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.
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/>.
27 exec_prefix = @exec_prefix@
31 PATH_SEPARATOR = @PATH_SEPARATOR@
32 program_transform_name = @program_transform_name@
34 # Should be GNU awk, for the get-them script.
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
44 all: $(srcdir)/stamp-checks
46 $(srcdir)/stamp-checks: $(srcdir)/get-them $(srcdir)/../doc/m4.texinfo
48 cd $(srcdir) && AWK=$(AWK) ./get-them ../doc/m4.texinfo
49 touch $(srcdir)/stamp-checks
54 install-dvi install-pdf install-ps install-html install-info:
58 check: $(srcdir)/stamp-checks
59 PATH=`pwd`/../src"$(PATH_SEPARATOR)"$$PATH; export PATH; \
60 $(srcdir)/check-them -I $(srcdir)/../examples $(CHECKS)
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)
76 maintainer-clean realclean: distclean
77 rm -f $(DOC_CHECKS) $(srcdir)/stamp-checks
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; \
88 Makefile: $(srcdir)/Makefile.in ../config.status
89 cd .. && ./config.status checks/$@
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.