1 ## Makefile.am - template for generating Makefile via Automake.
3 ## Copyright (C) 1992-1994, 2006-2014, 2016-2017, 2020-2021 Free
4 ## Software Foundation, Inc.
6 ## This file is part of GNU M4.
8 ## GNU M4 is free software: you can redistribute it and/or modify
9 ## it under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation, either version 3 of the License, or
11 ## (at your option) any later version.
13 ## GNU M4 is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ## GNU General Public License for more details.
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program. If not, see <https://www.gnu.org/licenses/>.
21 # Vern says that the first star is required around an Alpha make bug.
22 DOC_CHECKS = $(srcdir)/*[0-9][0-9][0-9].*
23 CHECKS = $(DOC_CHECKS) $(srcdir)/stackovf.test
24 EXTRA_DIST = get-them check-them stamp-checks stackovf.test $(DOC_CHECKS)
26 all-local: $(srcdir)/stamp-checks
28 $(srcdir)/stamp-checks: $(srcdir)/get-them $(top_srcdir)/doc/m4.texi
30 cd $(srcdir) && AWK=$(AWK) ./get-them ../doc/m4.texi
33 MAINTAINERCLEANFILES = $(DOC_CHECKS) $(srcdir)/stamp-checks
35 check-local: $(srcdir)/stamp-checks
36 PATH=`pwd`/../src"$(PATH_SEPARATOR)"$$PATH; export PATH; \
37 $(srcdir)/check-them -I $(srcdir)/../examples $(CHECKS)
39 installcheck: $(srcdir)/stamp-checks
40 PATH='$(bindir)'"$(PATH_SEPARATOR)"$$PATH; export PATH; \
41 $(srcdir)/check-them -I $(srcdir)/../examples \
42 -m "`echo m4 | sed '$(program_transform_name)'`" $(CHECKS)