* configure.ac: Stop using mmap for buffers on Cygwin.
[emacs.git] / admin / grammars / Makefile.in
blob9037343c81ad54e314f61eedf3034eadfe40d1a7
1 ### @configure_input@
3 ## Copyright (C) 2013-2016 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 # 'make' verbosity.
32 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
34 AM_V_GEN = $(am__v_GEN_@AM_V@)
35 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
36 am__v_GEN_0 = @echo " GEN " $@;
37 am__v_GEN_1 =
39 AM_V_at = $(am__v_at_@AM_V@)
40 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
41 am__v_at_0 = @
42 am__v_at_1 =
44 # Prevent any settings in the user environment causing problems.
45 unexport EMACSDATA EMACSDOC EMACSPATH
47 EMACS = ${top_builddir}/src/emacs
48 emacs = EMACSLOADPATH= "${EMACS}" -batch --no-site-file --no-site-lisp
50 make_bovine = ${emacs} -l semantic/bovine/grammar -f bovine-batch-make-parser
51 make_wisent = ${emacs} -l semantic/wisent/grammar -f wisent-batch-make-parser
53 cedetdir = ${top_srcdir}/lisp/cedet
54 bovinedir = ${cedetdir}/semantic/bovine
55 wisentdir = ${cedetdir}/semantic/wisent
57 BOVINE = \
58 ${bovinedir}/c-by.el \
59 ${bovinedir}/make-by.el \
60 ${bovinedir}/scm-by.el
62 ## FIXME Should include this one too:
63 ## ${cedetdir}/semantic/grammar-wy.el
64 ## but semantic/grammar.el (which is what we use to generate grammar-wy.el)
65 ## requires it!
66 WISENT = \
67 ${wisentdir}/javat-wy.el \
68 ${wisentdir}/js-wy.el \
69 ${wisentdir}/python-wy.el \
70 ${cedetdir}/srecode/srt-wy.el
72 ALL = ${BOVINE} ${WISENT}
74 .PHONY: all bovine wisent
76 all: ${ALL}
78 bovine: ${BOVINE}
80 wisent: ${WISENT}
82 ## c-by.el, make-by.el.
83 ${bovinedir}/%-by.el: ${srcdir}/%.by
84 $(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@"
85 $(AM_V_at)${make_bovine} -o "$@" $<
87 ${bovinedir}/scm-by.el: ${srcdir}/scheme.by
88 $(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@"
89 $(AM_V_at)${make_bovine} -o "$@" $<
91 ## grammar-wy.el
92 ${cedetdir}/semantic/%-wy.el: ${srcdir}/%.wy
93 $(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@"
94 $(AM_V_at)${make_wisent} -o "$@" $<
96 ## js-wy.el, python-wy.el
97 ${wisentdir}/%-wy.el: ${srcdir}/%.wy
98 $(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@"
99 $(AM_V_at)${make_wisent} -o "$@" $<
101 ${wisentdir}/javat-wy.el: ${srcdir}/java-tags.wy
102 $(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@"
103 $(AM_V_at)${make_wisent} -o "$@" $<
105 ${cedetdir}/srecode/srt-wy.el: ${srcdir}/srecode-template.wy
106 $(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@"
107 $(AM_V_at)${make_wisent} -o "$@" $<
110 .PHONY: distclean bootstrap-clean maintainer-clean extraclean
112 distclean:
113 rm -f Makefile
115 ## Perhaps this should do what extraclean (qv) does.
116 bootstrap-clean:
118 maintainer-clean: distclean
120 ## We do not normally delete the generated files, even in bootstrap.
121 ## Creating them does not take long, so we could easily change this.
122 extraclean:
123 rm -f ${ALL}
125 # Makefile.in ends here