]> git.saurik.com Git - bison.git/blame - examples/mfcalc/local.mk
maint: remove trailing empty lines.
[bison.git] / examples / mfcalc / local.mk
CommitLineData
c1192f8a
AD
1## Process this file with automake to produce Makefile.in -*-Makefile-*-
2
3## Copyright (C) 2005-2006, 2008-2012 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
18## ------------ ##
19## Extracting. ##
20## ------------ ##
21
22# Extract in src.
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 $@
30
31$(mfcalc_extracted): $(top_srcdir)/examples/mfcalc/mfcalc.stamp
32 $(AM_V_GEN)if test -f $@; then :; else \
33 rm -f $< && \
34 $(MAKE) $(AM_MAKEFLAGS) $<; \
35 fi
36
37## -------------------- ##
38## Building & testing. ##
39## -------------------- ##
40
41BUILT_SOURCES += $(mfcalc_sources)
42MAINTAINERCLEANFILES += $(top_srcdir)/examples/mfcalc/mfcalc.stamp $(mfcalc_sources)
43EXTRA_DIST += examples/mfcalc/mfcalc.stamp
44
45mfcalc_extracted = \
46 examples/mfcalc/calc.h \
47 examples/mfcalc/mfcalc.y
48mfcalc_sources = \
49 $(mfcalc_extracted)
50
51check_PROGRAMS += examples/mfcalc/mfcalc
dfd31ace 52examples_mfcalc_mfcalc_LDADD = -lm
c1192f8a
AD
53examples_mfcalc_mfcalc_SOURCES = \
54 $(mfcalc_sources)
55
56examples_mfcalc_mfcalc_CPPFLAGS = -I$(top_srcdir)/examples/mfcalc
5a9c6b89
AD
57TESTS += examples/mfcalc/mfcalc.test
58EXTRA_DIST += examples/mfcalc/mfcalc.test