1 ## Makefile.am - template for generating Makefile via Automake
3 ## Copyright (C) 2000-2001, 2003-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/>.
20 ## Written by Gary V. Vaughan <gary@gnu.org>
22 SUBDIRS = . examples lib src doc checks tests
24 syntax_check_exceptions = \
25 .x-sc_prohibit_tab_based_indentation \
28 EXTRA_DIST = bootstrap c-boxes.el cfg.mk maint.mk \
29 .prev-version .version m4/gnulib-cache.m4 $(syntax_check_exceptions)
30 DISTCLEANFILES = stamp-h
31 ## maintainer-clean should remove as much as possible that ./bootstrap can
32 ## recreate. In the m4 directory, keep only gnulib-cache.m4.
33 MAINTAINERCLEANFILES = INSTALL Makefile.in aclocal.m4 \
34 config-h.in configure depcomp doc/fdl.texi gendocs.sh install-sh \
35 lib/[a-z]* m4/[a-fh-z]* m4/g[a-mo-z]* m4/gnulib-comp.m4 \
36 m4/gnulib-tool.m4 missing stamp-h.in
38 ACLOCAL_AMFLAGS = -I m4
39 ## Enough users install GNU M4 as gm4 that we make sure 'make installcheck'
40 ## will handle that, prior to making a release.
41 DISTCHECK_CONFIGURE_FLAGS = --enable-changeword --program-prefix=g \
42 --enable-gcc-warnings --enable-silent-rules --enable-cxx
44 BUILT_SOURCES = $(top_srcdir)/.version
45 $(top_srcdir)/.version:
46 echo $(VERSION) > $@-t && mv $@-t $@
48 # Arrange so that .tarball-version appears only in the distribution
49 # tarball, and never in a checked-out repository.
51 echo $(VERSION) > $(distdir)/.tarball-version