Blame Makefile.am

Packit d6cc65
## Process this file with automake to produce Makefile.in.
Packit d6cc65
Packit d6cc65
# Copyright (C) 2001-2015 Free Software Foundation, Inc.
Packit d6cc65
#
Packit d6cc65
# This program is free software: you can redistribute it and/or modify
Packit d6cc65
# it under the terms of the GNU General Public License as published by
Packit d6cc65
# the Free Software Foundation, either version 3 of the License, or
Packit d6cc65
# (at your option) any later version.
Packit d6cc65
#
Packit d6cc65
# This program is distributed in the hope that it will be useful,
Packit d6cc65
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit d6cc65
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit d6cc65
# GNU General Public License for more details.
Packit d6cc65
#
Packit d6cc65
# You should have received a copy of the GNU General Public License
Packit d6cc65
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit d6cc65
Packit d6cc65
AUTOMAKE_OPTIONS = subdir-objects
Packit d6cc65
ACLOCAL_AMFLAGS = -I m4
Packit d6cc65
Packit d6cc65
SUBDIRS = po runtime-po .
Packit d6cc65
Packit d6cc65
# Files installed for use by Automake.
Packit d6cc65
aclocaldir = @aclocaldir@
Packit d6cc65
aclocal_DATA = m4/bison-i18n.m4
Packit d6cc65
Packit d6cc65
EXTRA_DIST = .prev-version .version cfg.mk PACKAGING \
Packit d6cc65
  ChangeLog-1998 ChangeLog-2012 ChangeLog
Packit d6cc65
Packit d6cc65
dist_doc_DATA = AUTHORS COPYING NEWS README THANKS TODO
Packit d6cc65
Packit d6cc65
## Running the bison from this tarball.  To generate our own parser,
Packit d6cc65
## but also to run the tests.  Of course, you ought to keep a sane
Packit d6cc65
## version of Bison nearby...
Packit d6cc65
BISON = $(top_builddir)/tests/bison
Packit d6cc65
BISON_IN = $(top_srcdir)/tests/bison.in
Packit d6cc65
YACC = $(BISON) -o y.tab.c
Packit d6cc65
AM_YFLAGS = -d -v -Werror -Wall -Wno-yacc --report=all
Packit d6cc65
Packit d6cc65
# Initialization before completion by local.mk's.
Packit d6cc65
AM_CFLAGS = $(WARN_CFLAGS)
Packit d6cc65
# Find builddir/src/scan-code.c etc.  For some reason "-I./lib"
Packit d6cc65
# instead of "-Ilib" avoids infinite recursions on #include_next.
Packit d6cc65
AM_CPPFLAGS = -I. -I./lib -I$(top_srcdir) -I$(top_srcdir)/lib
Packit d6cc65
BUILT_SOURCES =
Packit d6cc65
CLEANFILES =
Packit d6cc65
DISTCLEANFILES =
Packit d6cc65
EXTRA_DIST += $(dist_TESTS)
Packit d6cc65
MOSTLYCLEANDIRS =
Packit d6cc65
MOSTLYCLEANFILES =
Packit d6cc65
SUFFIXES =
Packit d6cc65
TESTS = $(dist_TESTS)
Packit d6cc65
check_PROGRAMS =
Packit d6cc65
dist_TESTS =
Packit d6cc65
noinst_LIBRARIES =
Packit d6cc65
Packit d6cc65
include build-aux/local.mk
Packit d6cc65
include data/local.mk
Packit d6cc65
include djgpp/local.mk
Packit d6cc65
include doc/local.mk
Packit d6cc65
include etc/local.mk
Packit d6cc65
include examples/local.mk
Packit d6cc65
include lib/local.mk
Packit d6cc65
include src/local.mk
Packit d6cc65
include tests/local.mk
Packit d6cc65
Packit d6cc65
# See comments in build-aux/git-version-gen.  However, we make .version depend
Packit d6cc65
# on configure so that .version and VERSION/PACKAGE_VERSION stay in sync in the
Packit d6cc65
# working copy (for example, when you run autoreconf && make).  Allowing these
Packit d6cc65
# to fall out of sync appears to have little potential to improve Bison build
Packit d6cc65
# efficiency (even if we were to replace VERSION/PACKAGE_VERSION with .version
Packit d6cc65
# everywhere possible).  On the other hand, it could be harmful.  For example,
Packit d6cc65
# a developer might naively reference .version in a test case while the bison
Packit d6cc65
# executable still compiles with VERSION, and so the test case might fail or
Packit d6cc65
# pass incorrectly.
Packit d6cc65
BUILT_SOURCES += $(top_srcdir)/.version
Packit d6cc65
$(top_srcdir)/.version: configure
Packit d6cc65
	echo $(VERSION) > $@-t && mv $@-t $@
Packit d6cc65
dist-hook: gen-ChangeLog
Packit d6cc65
	echo $(VERSION) > $(distdir)/.tarball-version
Packit d6cc65
Packit d6cc65
.PHONY: update-b4-copyright update-package-copyright-year
Packit d6cc65
update-b4-copyright:
Packit d6cc65
	$(AM_V_GEN)find $(srcdir)/data -type f          \
Packit d6cc65
	  | xargs $(srcdir)/build-aux/$@
Packit d6cc65
	@echo 'warning: src/parse-gram.[hc] may need to be regenerated.'
Packit d6cc65
update-package-copyright-year:
Packit d6cc65
	$(AM_V_GEN)$(srcdir)/build-aux/$@ $(srcdir)/configure.ac
Packit d6cc65
Packit d6cc65
gen_start_date = 2012-01-16
Packit d6cc65
.PHONY: gen-ChangeLog
Packit d6cc65
gen-ChangeLog:
Packit d6cc65
	$(AM_V_GEN)if test -d $(srcdir)/.git; then	\
Packit d6cc65
	  cl=$(distdir)/ChangeLog &&			\
Packit d6cc65
	  rm -f $$cl.tmp &&				\
Packit d6cc65
	  $(top_srcdir)/build-aux/gitlog-to-changelog	\
Packit d6cc65
	    --strip-tab					\
Packit d6cc65
	    --strip-cherry-pick				\
Packit d6cc65
	    --no-cluster				\
Packit d6cc65
	    --amend=$(srcdir)/build-aux/git-log-fix	\
Packit d6cc65
	    --srcdir=$(srcdir)				\
Packit d6cc65
	    --since=$(gen_start_date) > $$cl.tmp &&	\
Packit d6cc65
	  mv -f $$cl.tmp $$cl;				\
Packit d6cc65
	fi