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