]> git.saurik.com Git - bison.git/blame_incremental - Makefile.am
gnulib: update
[bison.git] / Makefile.am
... / ...
CommitLineData
1## Process this file with automake to produce Makefile.in.
2
3# Copyright (C) 2001-2015 Free Software Foundation, Inc.
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18AUTOMAKE_OPTIONS = subdir-objects
19ACLOCAL_AMFLAGS = -I m4
20
21SUBDIRS = po runtime-po .
22
23# Files installed for use by Automake.
24aclocaldir = @aclocaldir@
25aclocal_DATA = m4/bison-i18n.m4
26
27EXTRA_DIST = .prev-version .version cfg.mk PACKAGING \
28 ChangeLog-1998 ChangeLog-2012 ChangeLog
29
30dist_doc_DATA = AUTHORS COPYING NEWS README THANKS TODO
31
32## Running the bison from this tarball. To generate our own parser,
33## but also to run the tests. Of course, you ought to keep a sane
34## version of Bison nearby...
35BISON = $(top_builddir)/tests/bison
36BISON_IN = $(top_srcdir)/tests/bison.in
37YACC = $(BISON) -o y.tab.c
38AM_YFLAGS = -d -v -Werror -Wall -Wno-yacc --report=all
39
40# Initialization before completion by local.mk's.
41AM_CFLAGS = $(WARN_CFLAGS)
42# Find builddir/src/scan-code.c etc. For some reason "-I./lib"
43# instead of "-Ilib" avoids infinite recursions on #include_next.
44AM_CPPFLAGS = -I. -I./lib -I$(top_srcdir) -I$(top_srcdir)/lib
45BUILT_SOURCES =
46CLEANFILES =
47DISTCLEANFILES =
48EXTRA_DIST += $(dist_TESTS)
49MOSTLYCLEANDIRS =
50MOSTLYCLEANFILES =
51SUFFIXES =
52TESTS = $(dist_TESTS)
53check_PROGRAMS =
54dist_TESTS =
55noinst_LIBRARIES =
56
57include build-aux/local.mk
58include data/local.mk
59include djgpp/local.mk
60include doc/local.mk
61include etc/local.mk
62include examples/local.mk
63include lib/local.mk
64include src/local.mk
65include tests/local.mk
66
67# See comments in build-aux/git-version-gen. However, we make .version depend
68# on configure so that .version and VERSION/PACKAGE_VERSION stay in sync in the
69# working copy (for example, when you run autoreconf && make). Allowing these
70# to fall out of sync appears to have little potential to improve Bison build
71# efficiency (even if we were to replace VERSION/PACKAGE_VERSION with .version
72# everywhere possible). On the other hand, it could be harmful. For example,
73# a developer might naively reference .version in a test case while the bison
74# executable still compiles with VERSION, and so the test case might fail or
75# pass incorrectly.
76BUILT_SOURCES += $(top_srcdir)/.version
77$(top_srcdir)/.version: configure
78 echo $(VERSION) > $@-t && mv $@-t $@
79dist-hook: gen-ChangeLog
80 echo $(VERSION) > $(distdir)/.tarball-version
81
82.PHONY: update-b4-copyright update-package-copyright-year
83update-b4-copyright:
84 $(AM_V_GEN)find $(srcdir)/data -type f \
85 | xargs $(srcdir)/build-aux/$@
86 @echo 'warning: src/parse-gram.[hc] may need to be regenerated.'
87update-package-copyright-year:
88 $(AM_V_GEN)$(srcdir)/build-aux/$@ $(srcdir)/configure.ac
89
90gen_start_date = 2012-01-16
91.PHONY: gen-ChangeLog
92gen-ChangeLog:
93 $(AM_V_GEN)if test -d $(srcdir)/.git; then \
94 cl=$(distdir)/ChangeLog && \
95 rm -f $$cl.tmp && \
96 $(top_srcdir)/build-aux/gitlog-to-changelog \
97 --strip-tab \
98 --strip-cherry-pick \
99 --no-cluster \
100 --amend=$(srcdir)/build-aux/git-log-fix \
101 --srcdir=$(srcdir) \
102 --since=$(gen_start_date) > $$cl.tmp && \
103 mv -f $$cl.tmp $$cl; \
104 fi