summaryrefslogtreecommitdiff
path: root/admin/grammars/Makefile.in
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2021-04-04 09:19:24 -0700
committerGlenn Morris <rgm@gnu.org>2021-04-04 09:19:24 -0700
commitdd1aa7bc4ca6c1df1713ccac7c66e681d8444c21 (patch)
treea46340d06d52b771e8b642bc79b6a079cd65c028 /admin/grammars/Makefile.in
parentdd5ba88afbb63f54603cc632fc55993c04531a85 (diff)
downloademacs-dd1aa7bc4ca6c1df1713ccac7c66e681d8444c21.tar.gz
Make maintainer-clean delete generated files, as per standards
These are generated files that were once kept in the repository. When they were removed from the repository, as a half-way measure they were only deleted by "extraclean", but this was never necessary and was not a proper use of that rule. * admin/charsets/Makefile.in (gen-clean): New phony target. (maintainer-clean): Delete generated files. * admin/grammars/Makefile.in (gen-clean): New phony target. (maintainer-clean): Delete generated files. * admin/unidata/Makefile.in (gen-clean): New phony target. (maintainer-clean): Delete generated files. * leim/Makefile.in (gen-clean): New phony target. (maintainer-clean): Delete generated files. * GNUmakefile: Doc fix.
Diffstat (limited to 'admin/grammars/Makefile.in')
-rw-r--r--admin/grammars/Makefile.in19
1 files changed, 11 insertions, 8 deletions
diff --git a/admin/grammars/Makefile.in b/admin/grammars/Makefile.in
index aa09d9edf94..1573eb3bde9 100644
--- a/admin/grammars/Makefile.in
+++ b/admin/grammars/Makefile.in
@@ -51,7 +51,7 @@ BOVINE = \
## FIXME Should include this one too:
## ${cedetdir}/semantic/grammar-wy.el
## but semantic/grammar.el (which is what we use to generate grammar-wy.el)
-## requires it!
+## requires it! https://debbugs.gnu.org/16008
WISENT = \
${wisentdir}/javat-wy.el \
${wisentdir}/js-wy.el \
@@ -68,6 +68,8 @@ bovine: ${BOVINE}
wisent: ${WISENT}
+## TODO add dependencies on semantic/{bovine,wisent}/grammar.el
+
## c-by.el, make-by.el.
${bovinedir}/%-by.el: ${srcdir}/%.by
$(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@"
@@ -96,19 +98,20 @@ ${cedetdir}/srecode/srt-wy.el: ${srcdir}/srecode-template.wy
$(AM_V_at)${make_wisent} -o "$@" $<
-.PHONY: distclean bootstrap-clean maintainer-clean extraclean
+.PHONY: distclean bootstrap-clean maintainer-clean extraclean gen-clean
distclean:
rm -f Makefile
-## Perhaps this should do what extraclean (qv) does.
+## IMO this should run gen-clean.
bootstrap-clean:
-maintainer-clean: distclean
-
-## We do not normally delete the generated files, even in bootstrap.
-## Creating them does not take long, so we could easily change this.
-extraclean:
+gen-clean:
rm -f ${ALL}
+maintainer-clean: gen-clean distclean
+
+extraclean: maintainer-clean
+
+
# Makefile.in ends here