summaryrefslogtreecommitdiff
path: root/admin/unidata/Makefile.in
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-11-27 13:25:44 -0500
committerGlenn Morris <rgm@gnu.org>2013-11-27 13:25:44 -0500
commit7e3bf78c8900d7bac3bbeca038a99f5ce7afeeee (patch)
treeab254409204419f0e2250372d260c85abe377aa4 /admin/unidata/Makefile.in
parentccd4fb3d2ec32d1db12412231d6a7d507039de9d (diff)
downloademacs-7e3bf78c8900d7bac3bbeca038a99f5ce7afeeee.tar.gz
Stop keeping generated Unicode lisp files in the repository
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg01023.html * admin/unidata/Makefile.in (all, install, clean, bootstrap-clean) (distclean, maintainer-clean): Declare as PHONY. (compile, extraclean): New. (${DSTDIR}/charprop.el): Depend on source files rather than intermediate products. * lisp/international/charprop.el, lisp/international/uni-bidi.el: * lisp/international/uni-category.el, lisp/international/uni-combining.el: * lisp/international/uni-comment.el, lisp/international/uni-decimal.el: * lisp/international/uni-decomposition.el, lisp/international/uni-digit.el: * lisp/international/uni-lowercase.el, lisp/international/uni-mirrored.el: * lisp/international/uni-name.el, lisp/international/uni-numeric.el: * lisp/international/uni-old-name.el, lisp/international/uni-titlecase.el: * lisp/international/uni-uppercase.el: Remove generated files from VCS repository. * src/Makefile.in ($(lispsource)/international/charprop.el): New. (emacs$(EXEEXT)): Depend on charprop.el. * Makefile.in: Comment. * .bzrignore: Add generated Unicode files.
Diffstat (limited to 'admin/unidata/Makefile.in')
-rw-r--r--admin/unidata/Makefile.in23
1 files changed, 21 insertions, 2 deletions
diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in
index 4d947363514..f51525109f7 100644
--- a/admin/unidata/Makefile.in
+++ b/admin/unidata/Makefile.in
@@ -31,6 +31,8 @@ EMACS = ${top_builddir}/src/emacs
DSTDIR = ${top_srcdir}/lisp/international
emacs = "${EMACS}" -batch --no-site-file --no-site-lisp
+.PHONY: all compile install
+
all: ${DSTDIR}/charprop.el
.el.elc:
@@ -39,7 +41,13 @@ all: ${DSTDIR}/charprop.el
unidata.txt: ${srcdir}/UnicodeData.txt
sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < ${srcdir}/UnicodeData.txt > $@
-${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.elc unidata.txt
+compile: ${srcdir}/unidata-gen.elc
+
+## Depend on .el rather than .elc so as not to needless rebuild
+## uni-*.el files just because .elc is missing.
+## Same for UnicodeData.txt v unidata.txt.
+${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.el ${srcdir}/UnicodeData.txt
+ ${MAKE} ${MFLAGS} compile unidata.txt EMACS="${EMACS}"
${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
${srcdir} "${DSTDIR}"
@@ -48,6 +56,8 @@ charprop.el: ${srcdir}/unidata-gen.elc unidata.txt
${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
${srcdir}
+.PHONY: clean bootstrap-clean distclean maintainer-clean extraclean
+
install: charprop.el
cp charprop.el ${DSTDIR}
cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR}
@@ -61,6 +71,15 @@ clean:
bootstrap-clean: clean
distclean: clean
- -rm -f ./Makefile
+ rm -f Makefile
maintainer-clean: distclean
+
+## Do not remove these files, even in a bootstrap, because they rarely
+## change and it slows down bootstrap (a tiny bit).
+## Cf leim/ja-dic (which is much slower).
+extraclean:
+ if test -f ${DSTDIR}/charprop.el; then \
+ (cd ${DSTDIR} && rm -f `sed -n 's/^;; FILE: //p' < charprop.el`); \
+ rm -f ${DSTDIR}/charprop.el; \
+ fi