]>
Commit | Line | Data |
---|---|---|
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 | ||
19 | ACLOCAL_AMFLAGS = -I m4 | |
20 | ||
21 | SUBDIRS = po runtime-po . | |
22 | if BISON_CXX_WORKS | |
23 | SUBDIRS += examples/calc++ | |
24 | endif | |
25 | ||
26 | # Files installed for use by Automake. | |
27 | aclocaldir = @aclocaldir@ | |
28 | aclocal_DATA = m4/bison-i18n.m4 | |
29 | ||
30 | EXTRA_DIST = .prev-version .version \ | |
31 | cfg.mk \ | |
32 | OChangeLog PACKAGING | |
33 | ||
34 | # Initialization before completion by local.mk's. | |
35 | AM_CFLAGS = $(WARN_CFLAGS) | |
36 | AM_CPPFLAGS = | |
37 | BUILT_SOURCES = | |
38 | DISTCLEANFILES = | |
39 | MOSTLYCLEANFILES = | |
40 | SUFFIXES = | |
41 | include build-aux/local.mk | |
42 | include data/local.mk | |
43 | include djgpp/local.mk | |
44 | include doc/local.mk | |
45 | include etc/local.mk | |
46 | include examples/local.mk | |
47 | include lib/local.mk | |
48 | include src/local.mk | |
49 | include 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. | |
60 | BUILT_SOURCES += $(top_srcdir)/.version | |
61 | $(top_srcdir)/.version: configure | |
62 | echo $(VERSION) > $@-t && mv $@-t $@ | |
63 | dist-hook: | |
64 | echo $(VERSION) > $(distdir)/.tarball-version | |
65 | ||
66 | .PHONY: update-b4-copyright update-package-copyright-year | |
67 | update-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.' | |
72 | update-package-copyright-year: | |
73 | $(build_aux)/$@ configure.ac |