1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
3 ## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
4 ## 2010 Free Software Foundation, Inc.
6 ## This program is free software: you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, either version 3 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
19 ACLOCAL_AMFLAGS = -I m4
21 SUBDIRS = po runtime-po .
23 SUBDIRS += examples/calc++
26 # Files installed for use by Automake.
27 aclocaldir = @aclocaldir@
28 aclocal_DATA = m4/bison-i18n.m4
30 EXTRA_DIST = .prev-version .version \
34 # Initialization before completion by local.mk's.
35 AM_CFLAGS = $(WARN_CFLAGS)
41 include build-aux/local.mk
43 include djgpp/local.mk
46 include examples/local.mk
49 include tests/local.mk
51 # See comments in build-aux/git-version-gen. However, we make .version depend
52 # on configure so that .version and VERSION/PACKAGE_VERSION stay in sync in the
53 # working copy (for example, when you run autoreconf && make). Allowing these
54 # to fall out of sync appears to have little potential to improve Bison build
55 # efficiency (even if we were to replace VERSION/PACKAGE_VERSION with .version
56 # everywhere possible). On the other hand, it could be harmful. For example,
57 # a developer might naively reference .version in a test case while the bison
58 # executable still compiles with VERSION, and so the test case might fail or
60 BUILT_SOURCES += $(top_srcdir)/.version
61 $(top_srcdir)/.version: configure
62 echo $(VERSION) > $@-t && mv $@-t $@
64 echo $(VERSION) > $(distdir)/.tarball-version
66 .PHONY: update-b4-copyright update-package-copyright-year
69 | grep -v -E '^data/bison.m4$$' \
70 | xargs $(build_aux)/$@
71 @echo 'warning: src/parse-gram.[hc] may need to be regenerated.'
72 update-package-copyright-year:
73 $(build_aux)/$@ configure.ac