Update copyright year to 2014 by running admin/update-copyright.
[emacs.git] / admin / grammars / Makefile.in
blob827240a8d4ea94864d93b85886999420bf33b41f
1 ### @configure_input@
3 ## Copyright (C) 2013-2014 Free Software Foundation, Inc.
5 ## This file is part of GNU Emacs.
7 ## GNU Emacs is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 3 of the License, or
10 ## (at your option) any later version.
12 ## GNU Emacs is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20 ### Commentary:
22 ## This directory contains grammar files in Bison and Wisent,
23 ## used to generate the parser data in the lisp/cedet directory.
25 SHELL = @SHELL@
27 srcdir = @srcdir@
28 top_srcdir = @top_srcdir@
29 top_builddir = @top_builddir@
31 EMACS = ${top_builddir}/src/emacs
32 emacs = EMACSLOADPATH= "${EMACS}" -batch --no-site-file --no-site-lisp
34 make_bovine = ${emacs} -l semantic/bovine/grammar -f bovine-batch-make-parser
35 make_wisent = ${emacs} -l semantic/wisent/grammar -f wisent-batch-make-parser
37 cedetdir = ${top_srcdir}/lisp/cedet
38 bovinedir = ${cedetdir}/semantic/bovine
39 wisentdir = ${cedetdir}/semantic/wisent
41 BOVINE = \
42 ${bovinedir}/c-by.el \
43 ${bovinedir}/make-by.el \
44 ${bovinedir}/scm-by.el
46 ## FIXME Should include this one too:
47 ## ${cedetdir}/semantic/grammar-wy.el
48 ## but semantic/grammar.el (which is what we use to generate grammar-wy.el)
49 ## requires it!
50 WISENT = \
51 ${wisentdir}/javat-wy.el \
52 ${wisentdir}/js-wy.el \
53 ${wisentdir}/python-wy.el \
54 ${cedetdir}/srecode/srt-wy.el
56 ALL = ${BOVINE} ${WISENT}
58 .PHONY: all bovine wisent
60 all: ${ALL}
62 bovine: ${BOVINE}
64 wisent: ${WISENT}
67 ${bovinedir}/c-by.el: ${srcdir}/c.by
68 [ ! -f "$@" ] || chmod +w "$@"
69 ${make_bovine} -o "$@" ${srcdir}/c.by
71 ${bovinedir}/make-by.el: ${srcdir}/make.by
72 [ ! -f "$@" ] || chmod +w "$@"
73 ${make_bovine} -o "$@" ${srcdir}/make.by
75 ${bovinedir}/scm-by.el: ${srcdir}/scheme.by
76 [ ! -f "$@" ] || chmod +w "$@"
77 ${make_bovine} -o "$@" ${srcdir}/scheme.by
80 ${cedetdir}/semantic/grammar-wy.el: ${srcdir}/grammar.wy
81 [ ! -f "$@" ] || chmod +w "$@"
82 ${make_wisent} -o "$@" ${srcdir}/grammar.wy
84 ${wisentdir}/javat-wy.el: ${srcdir}/java-tags.wy
85 [ ! -f "$@" ] || chmod +w "$@"
86 ${make_wisent} -o "$@" ${srcdir}/java-tags.wy
88 ${wisentdir}/js-wy.el: ${srcdir}/js.wy
89 [ ! -f "$@" ] || chmod +w "$@"
90 ${make_wisent} -o "$@" ${srcdir}/js.wy
92 ${wisentdir}/python-wy.el: ${srcdir}/python.wy
93 [ ! -f "$@" ] || chmod +w "$@"
94 ${make_wisent} -o "$@" ${srcdir}/python.wy
96 ${cedetdir}/srecode/srt-wy.el: ${srcdir}/srecode-template.wy
97 [ ! -f "$@" ] || chmod +w "$@"
98 ${make_wisent} -o "$@" ${srcdir}/srecode-template.wy
101 .PHONY: distclean bootstrap-clean maintainer-clean extraclean
103 distclean:
104 rm -f Makefile
106 bootstrap-clean maintainer-clean: distclean
108 ## We do not normally delete the generated files, even in bootstrap.
109 ## Creating them does not take long, so we could easily change this.
110 extraclean:
111 rm -f ${ALL}
113 # Makefile.in ends here