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/>.
22 ## This directory contains grammar files in Bison and Wisent,
23 ## used to generate the parser data in the lisp/cedet directory.
28 top_srcdir
= @top_srcdir@
29 top_builddir
= @top_builddir@
31 # Prevent any settings in the user environment causing problems.
32 unexport EMACSDATA EMACSDOC EMACSPATH
34 EMACS
= ${top_builddir}/src
/emacs
35 emacs
= EMACSLOADPATH
= "${EMACS}" -batch
--no-site-file
--no-site-lisp
37 make_bovine
= ${emacs} -l semantic
/bovine
/grammar
-f bovine-batch-make-parser
38 make_wisent
= ${emacs} -l semantic
/wisent
/grammar
-f wisent-batch-make-parser
40 cedetdir
= ${top_srcdir}/lisp
/cedet
41 bovinedir
= ${cedetdir}/semantic
/bovine
42 wisentdir
= ${cedetdir}/semantic
/wisent
45 ${bovinedir}/c-by.el \
46 ${bovinedir}/make-by.el \
47 ${bovinedir}/scm-by.el
49 ## FIXME Should include this one too:
50 ## ${cedetdir}/semantic/grammar-wy.el
51 ## but semantic/grammar.el (which is what we use to generate grammar-wy.el)
54 ${wisentdir}/javat-wy.el \
55 ${wisentdir}/js-wy.el \
56 ${wisentdir}/python-wy.el \
57 ${cedetdir}/srecode
/srt-wy.el
59 ALL
= ${BOVINE} ${WISENT}
61 .PHONY
: all bovine wisent
69 ## c-by.el, make-by.el.
70 ${bovinedir}/%-by.el
: ${srcdir}/%.by
71 [ ! -f
"$@" ] || chmod
+w
"$@"
72 ${make_bovine} -o
"$@" $<
74 ${bovinedir}/scm-by.el
: ${srcdir}/scheme.by
75 [ ! -f
"$@" ] || chmod
+w
"$@"
76 ${make_bovine} -o
"$@" $<
79 ${cedetdir}/semantic
/%-wy.el
: ${srcdir}/%.wy
80 [ ! -f
"$@" ] || chmod
+w
"$@"
81 ${make_wisent} -o
"$@" $<
83 ## js-wy.el, python-wy.el
84 ${wisentdir}/%-wy.el
: ${srcdir}/%.wy
85 [ ! -f
"$@" ] || chmod
+w
"$@"
86 ${make_wisent} -o
"$@" $<
88 ${wisentdir}/javat-wy.el
: ${srcdir}/java-tags.wy
89 [ ! -f
"$@" ] || chmod
+w
"$@"
90 ${make_wisent} -o
"$@" $<
92 ${cedetdir}/srecode
/srt-wy.el
: ${srcdir}/srecode-template.wy
93 [ ! -f
"$@" ] || chmod
+w
"$@"
94 ${make_wisent} -o
"$@" $<
97 .PHONY
: distclean bootstrap-clean maintainer-clean extraclean
102 ## Perhaps this should do what extraclean (qv) does.
105 maintainer-clean
: distclean
107 ## We do not normally delete the generated files, even in bootstrap.
108 ## Creating them does not take long, so we could easily change this.
112 # Makefile.in ends here