Merge from emacs-24; up to 2014-05-29T17:16:00Z!dmantipov@yandex.ru
[bpt/emacs.git] / admin / grammars / Makefile.in
index 94c2e9a..b89df71 100644 (file)
@@ -1,6 +1,6 @@
 ### @configure_input@
 
-## Copyright (C) 2013 Free Software Foundation, Inc.
+## Copyright (C) 2013-2014 Free Software Foundation, Inc.
 
 ## This file is part of GNU Emacs.
 
@@ -28,6 +28,9 @@ srcdir = @srcdir@
 top_srcdir = @top_srcdir@
 top_builddir = @top_builddir@
 
+# Prevent any settings in the user environment causing problems.
+unexport EMACSDATA EMACSDOC EMACSPATH
+
 EMACS = ${top_builddir}/src/emacs
 emacs = EMACSLOADPATH= "${EMACS}" -batch --no-site-file --no-site-lisp
 
@@ -65,28 +68,36 @@ wisent: ${WISENT}
 
 
 ${bovinedir}/c-by.el: ${srcdir}/c.by
+       [ ! -f "$@" ] || chmod +w "$@"
        ${make_bovine} -o "$@" ${srcdir}/c.by
 
 ${bovinedir}/make-by.el: ${srcdir}/make.by
+       [ ! -f "$@" ] || chmod +w "$@"
        ${make_bovine} -o "$@" ${srcdir}/make.by
 
 ${bovinedir}/scm-by.el: ${srcdir}/scheme.by
+       [ ! -f "$@" ] || chmod +w "$@"
        ${make_bovine} -o "$@" ${srcdir}/scheme.by
 
 
 ${cedetdir}/semantic/grammar-wy.el: ${srcdir}/grammar.wy
+       [ ! -f "$@" ] || chmod +w "$@"
        ${make_wisent} -o "$@" ${srcdir}/grammar.wy
 
 ${wisentdir}/javat-wy.el: ${srcdir}/java-tags.wy
+       [ ! -f "$@" ] || chmod +w "$@"
        ${make_wisent} -o "$@" ${srcdir}/java-tags.wy
 
 ${wisentdir}/js-wy.el: ${srcdir}/js.wy
+       [ ! -f "$@" ] || chmod +w "$@"
        ${make_wisent} -o "$@" ${srcdir}/js.wy
 
 ${wisentdir}/python-wy.el: ${srcdir}/python.wy
+       [ ! -f "$@" ] || chmod +w "$@"
        ${make_wisent} -o "$@" ${srcdir}/python.wy
 
 ${cedetdir}/srecode/srt-wy.el: ${srcdir}/srecode-template.wy
+       [ ! -f "$@" ] || chmod +w "$@"
        ${make_wisent} -o "$@" ${srcdir}/srecode-template.wy