1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
3 ## Copyright (C) 2005-2006, 2008-2012 Free Software Foundation, Inc.
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.
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.
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/>.
23 $(top_srcdir)/examples/mfcalc/mfcalc.stamp: $(doc) $(extexi)
24 $(AM_V_GEN)rm -f $@ $@.tmp
25 $(AM_V_at)touch $@.tmp
26 $(AM_V_at)cd $(top_srcdir)/examples/mfcalc && \
27 $(AWK) -f ../extexi -v VERSION="$(VERSION)" \
28 ../../doc/bison.texinfo -- calc.h mfcalc.y
29 $(AM_V_at)mv $@.tmp $@
31 $(mfcalc_extracted): $(top_srcdir)/examples/mfcalc/mfcalc.stamp
32 $(AM_V_GEN)if test -f $@; then :; else \
34 $(MAKE) $(AM_MAKEFLAGS) $<; \
37 ## -------------------- ##
38 ## Building & testing. ##
39 ## -------------------- ##
41 BUILT_SOURCES += $(mfcalc_sources)
42 MAINTAINERCLEANFILES += $(top_srcdir)/examples/mfcalc/mfcalc.stamp $(mfcalc_sources)
43 EXTRA_DIST += examples/mfcalc/mfcalc.stamp
46 examples/mfcalc/calc.h \
47 examples/mfcalc/mfcalc.y
51 check_PROGRAMS += examples/mfcalc/mfcalc
52 examples_mfcalc_mfcalc_SOURCES = \
55 examples_mfcalc_mfcalc_CPPFLAGS = -I$(top_srcdir)/examples/mfcalc
56 TESTS += examples/mfcalc/test
57 EXTRA_DIST += examples/mfcalc/test