summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/wisent/grammar.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2021-04-04 16:57:55 -0700
committerGlenn Morris <rgm@gnu.org>2021-04-04 16:57:55 -0700
commit9cb3db0bade2ea43bad9cadc7864887c09bc7cd0 (patch)
tree1eace9fefdb6170ad5ecd8f03012bea03dbf7685 /lisp/cedet/semantic/wisent/grammar.el
parent258a17855becd8ab914a9bcf063e43801e704781 (diff)
downloademacs-9cb3db0bade2ea43bad9cadc7864887c09bc7cd0.tar.gz
Regenerate semantic grammars if the generating code changes
* admin/grammars/Makefile.in (emacs): Set load-prefer-newer. (grammar_bovine, grammar_wisent): New variables. (${bovinedir}/%-by.el, ${bovinedir}/scm-by.el) (${cedetdir}/semantic/%-wy.el, ${wisentdir}/%-wy.el) (${wisentdir}/javat-wy.el, ${cedetdir}/srecode/srt-wy.el): Depend on the source file for the generating function. * lisp/cedet/semantic/bovine/grammar.el (bovine--make-parser-1): * lisp/cedet/semantic/wisent/grammar.el (wisent--make-parser-1): Force generation of the output file. The previous "is the output newer than the input" failed to account for changes in the generation code itself. Force so we can let make figure it out.
Diffstat (limited to 'lisp/cedet/semantic/wisent/grammar.el')
-rw-r--r--lisp/cedet/semantic/wisent/grammar.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/cedet/semantic/wisent/grammar.el b/lisp/cedet/semantic/wisent/grammar.el
index 465d4720031..c5e4554082e 100644
--- a/lisp/cedet/semantic/wisent/grammar.el
+++ b/lisp/cedet/semantic/wisent/grammar.el
@@ -477,7 +477,7 @@ Menu items are appended to the common grammar menu.")
(condition-case err
(with-current-buffer (find-file-noselect infile)
(if outdir (setq default-directory outdir))
- (semantic-grammar-create-package nil t))
+ (semantic-grammar-create-package t t))
(error (message "%s" (error-message-string err)) nil)))
output-data)
(when (setq output-data (assoc packagename wisent-make-parsers--parser-file-name))