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/calc++/calc.stamp: $(doc) $(extexi)
24 $(AM_V_GEN)rm -f $@ $@.tmp
25 $(AM_V_at)touch $@.tmp
26 $(AM_V_at)cd $(top_srcdir)/examples/calc++ && \
27 $(AWK) -f ../extexi -v VERSION="$(VERSION)" \
28 ../../doc/bison.texinfo -- calc++-parser.yy \
29 calc++-scanner.ll calc++.cc calc++-driver.hh calc++-driver.cc
30 $(AM_V_at)mv $@.tmp $@
32 $(calc_extracted): $(top_srcdir)/examples/calc++/calc.stamp
33 $(AM_V_GEN)if test -f $@; then :; else \
35 $(MAKE) $(AM_MAKEFLAGS) $<; \
38 ## -------------------- ##
39 ## Building & testing. ##
40 ## -------------------- ##
42 BUILT_SOURCES += $(calc_sources) examples/calc++/calc++-parser.h
44 MAINTAINERCLEANFILES += $(top_srcdir)/examples/calc++/calc.stamp $(calc_sources)
45 EXTRA_DIST += examples/calc++/calc.stamp
48 examples/calc++/calc++-scanner.ll \
49 examples/calc++/calc++.cc \
50 examples/calc++/calc++-driver.hh \
51 examples/calc++/calc++-driver.cc \
52 examples/calc++/calc++-parser.yy
54 examples/calc++/stack.hh \
55 examples/calc++/position.hh \
56 examples/calc++/location.hh
58 $(calc_extracted) $(calc_generated)
60 check_PROGRAMS += examples/calc++/calc++
61 examples_calc___calc___SOURCES = \
63 examples/calc++/y.tab.h \
64 examples/calc++/calc++-parser.hh
66 examples_calc___calc___CPPFLAGS = -I$(top_srcdir)/examples/calc++
67 TESTS += examples/calc++/calc++.test
69 EXTRA_DIST += examples/calc++/calc++.test