]> git.saurik.com Git - bison.git/blame_incremental - Makefile.am
Do not use date ranges in copyright notices.
[bison.git] / Makefile.am
... / ...
CommitLineData
1## Process this file with automake to produce Makefile.in -*-Makefile-*-
2
3## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
4## 2010 Free Software Foundation, Inc.
5
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.
10##
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.
15##
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/>.
18
19ACLOCAL_AMFLAGS = -I m4
20
21SUBDIRS = po runtime-po .
22if BISON_CXX_WORKS
23SUBDIRS += examples/calc++
24endif
25
26# Files installed for use by Automake.
27aclocaldir = @aclocaldir@
28aclocal_DATA = m4/bison-i18n.m4
29
30EXTRA_DIST = .prev-version .version \
31 cfg.mk \
32 OChangeLog PACKAGING
33
34# Initialization before completion by local.mk's.
35AM_CFLAGS = $(WARN_CFLAGS)
36AM_CPPFLAGS =
37BUILT_SOURCES =
38DISTCLEANFILES =
39MOSTLYCLEANFILES =
40SUFFIXES =
41include build-aux/local.mk
42include data/local.mk
43include djgpp/local.mk
44include doc/local.mk
45include etc/local.mk
46include examples/local.mk
47include lib/local.mk
48include src/local.mk
49include tests/local.mk
50
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
59# pass incorrectly.
60BUILT_SOURCES += $(top_srcdir)/.version
61$(top_srcdir)/.version: configure
62 echo $(VERSION) > $@-t && mv $@-t $@
63dist-hook:
64 echo $(VERSION) > $(distdir)/.tarball-version
65
66.PHONY: update-b4-copyright update-package-copyright-year
67update-b4-copyright:
68 find data -type f \
69 | grep -v -E '^data/bison.m4$$' \
70 | xargs $(build_aux)/$@
71 @echo 'warning: src/parse-gram.[hc] may need to be regenerated.'
72update-package-copyright-year:
73 $(build_aux)/$@ configure.ac