[CVE-2018-17942] vasnprintf: Fix heap memory overrun bug.
[platform/upstream/m4.git] / checks / Makefile.am
1 ## Makefile.am - template for generating Makefile via Automake.
2 ##
3 ## Copyright (C) 1992-1994, 2006-2013 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 # Vern says that the first star is required around an Alpha make bug.
21 DOC_CHECKS = $(srcdir)/*[0-9][0-9][0-9].*
22 CHECKS = $(DOC_CHECKS) $(srcdir)/stackovf.test
23 EXTRA_DIST = get-them check-them stamp-checks stackovf.test $(DOC_CHECKS)
24
25 all-local: $(srcdir)/stamp-checks
26
27 $(srcdir)/stamp-checks: $(srcdir)/get-them $(top_srcdir)/doc/m4.texi
28         rm -f $(DOC_CHECKS)
29         cd $(srcdir) && AWK=$(AWK) ./get-them ../doc/m4.texi
30         echo stamp >$@
31
32 MAINTAINERCLEANFILES = $(DOC_CHECKS) $(srcdir)/stamp-checks
33
34 check-local: $(srcdir)/stamp-checks
35         PATH=`pwd`/../src"$(PATH_SEPARATOR)"$$PATH; export PATH; \
36         $(srcdir)/check-them -I $(srcdir)/../examples $(CHECKS)
37
38 installcheck: $(srcdir)/stamp-checks
39         PATH='$(bindir)'"$(PATH_SEPARATOR)"$$PATH; export PATH; \
40         $(srcdir)/check-them -I $(srcdir)/../examples \
41         -m "`echo m4 | sed '$(program_transform_name)'`" $(CHECKS)