Make GNUmakefile work with in-place builds.
[m4/ericb.git] / Makefile.am
blobb12f71006ea0a28e0ec9229a6920ac5757dec4c9
1 ## Makefile.am - template for generating Makefile via Automake
2 ##
3 ## Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free
4 ## Software Foundation, Inc.
5 ##
6 ## This file is part of GNU M4.
7 ##
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 <http://www.gnu.org/licenses/>.
21 ## Written by Gary V. Vaughan <gary@gnu.org>
23 SUBDIRS = . examples lib src doc tests checks
24 EXTRA_DIST = bootstrap c-boxes.el GNUmakefile Makefile.cfg Makefile.maint \
25         .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 = COPYING 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 DISTCHECK_CONFIGURE_FLAGS = --enable-changeword
37 BUILT_SOURCES = .version
38 .version:
39         echo $(VERSION) > $@-t && mv $@-t $@
41 # Arrange so that .tarball-version appears only in the distribution
42 # tarball, and never in a checked-out repository.
43 dist-hook:
44         echo $(VERSION) > $(distdir)/.tarball-version
46 # Arrange to remove the symlink to GNUmakefile in VPATH builds.
47 # TODO remove this once automake vs. AC_CONFIG_LINKS issue is fixed.
48 distclean-local:
49         if test x"$(VPATH)" != x ; then rm -f GNUmakefile ; fi