]> code.delx.au - gnu-emacs/commitdiff
admin/unidata/Makefile.in small cleanup
authorGlenn Morris <rgm@gnu.org>
Tue, 7 Oct 2014 05:14:28 +0000 (22:14 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 7 Oct 2014 05:14:28 +0000 (22:14 -0700)
* admin/unidata/Makefile.in (unidir): Rename from DSTDIR.  Change all uses.
(charprop.el, install): Remove rules.
(clean): Simplify.

admin/ChangeLog
admin/unidata/Makefile.in

index ad4422ec3e1e2bf945489d98cce4549b930260b0..224ed5e6149fe72acd763a12b9ffe44b069885b0 100644 (file)
@@ -1,3 +1,9 @@
+2014-10-07  Glenn Morris  <rgm@gnu.org>
+
+       * unidata/Makefile.in (unidir): Rename from DSTDIR.  Change all uses.
+       (charprop.el, install): Remove rules.
+       (clean): Simplify.
+
 2014-10-04  Glenn Morris  <rgm@gnu.org>
 
        * authors.el (authors-renamed-files-alist): Add package-x-test.el
index 6b253ea565bc7b184cbeaff4b4edb224d0371e39..f1b8ba2bd13c23505a83dbde6c91b88e630c68a9 100644 (file)
@@ -28,12 +28,12 @@ top_srcdir = @top_srcdir@
 top_builddir = @top_builddir@
 
 EMACS = ${top_builddir}/src/emacs
-DSTDIR = ${top_srcdir}/lisp/international
+unidir = ${top_srcdir}/lisp/international
 emacs = "${EMACS}" -batch --no-site-file --no-site-lisp
 
-.PHONY: all compile install
+.PHONY: all
 
-all: ${top_srcdir}/src/macuvs.h ${DSTDIR}/charprop.el
+all: ${top_srcdir}/src/macuvs.h ${unidir}/charprop.el
 
 ## Specify .elc as an order-only prereq so as to not needlessly rebuild
 ## target just because the .elc is missing.
@@ -50,30 +50,18 @@ ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | \
 unidata.txt: ${srcdir}/UnicodeData.txt
        sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < $< > $@
 
-${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.el ${srcdir}/UnicodeData.txt | \
+${unidir}/charprop.el: ${srcdir}/unidata-gen.el ${srcdir}/UnicodeData.txt | \
   ${srcdir}/unidata-gen.elc unidata.txt
        -if [ -f "$@" ]; then \
-         cd ${DSTDIR} && chmod +w charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; \
+         cd ${unidir} && chmod +w charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; \
        fi
        ${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
-         ${srcdir} "${DSTDIR}"
-
-## Like the above, but generate in PWD rather than lisp/international.
-charprop.el: ${srcdir}/unidata-gen.elc unidata.txt
-       ${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
-         ${srcdir}
+         ${srcdir} "${unidir}"
 
 .PHONY: clean bootstrap-clean distclean maintainer-clean extraclean
 
-install: charprop.el
-       cp charprop.el ${DSTDIR}
-       cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR}
-
 clean:
-       if test -f charprop.el; then \
-         rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \
-       fi
-       rm -f charprop.el ${srcdir}/*.elc unidata.txt
+       rm -f ${srcdir}/*.elc unidata.txt
 
 bootstrap-clean: clean
 
@@ -87,7 +75,7 @@ maintainer-clean: distclean
 ## Cf leim/ja-dic (which is much slower).
 extraclean:
        rm -f ${top_srcdir}/src/macuvs.h
-       if test -f ${DSTDIR}/charprop.el; then \
-         (cd ${DSTDIR} && rm -f `sed -n 's/^;; FILE: //p' < charprop.el`); \
-         rm -f ${DSTDIR}/charprop.el; \
+       if test -f ${unidir}/charprop.el; then \
+         (cd ${unidir} && rm -f `sed -n 's/^;; FILE: //p' < charprop.el`); \
+         rm -f ${unidir}/charprop.el; \
        fi