emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r117392: admin/unidata: small Makefile simplificatio


From: Glenn Morris
Subject: [Emacs-diffs] trunk r117392: admin/unidata: small Makefile simplifications
Date: Wed, 25 Jun 2014 06:03:19 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117392
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2014-06-24 23:03:13 -0700
message:
  admin/unidata: small Makefile simplifications
  
  * admin/unidata/Makefile.in (${top_srcdir}/src/macuvs.h): Make and load .elc.
  (.el.elc): Replace with pattern rule.
  (%.elc): New.
  (unidata.txt): Use $<.
  (compile): Remove.
  (${DSTDIR}/charprop.el): Use order-only prereqs rather than a sub-make.
modified:
  admin/ChangeLog                changelog-20091113204419-o5vbwnq5f7feedwu-2226
  admin/unidata/Makefile.in      
makefile.in-20091113204419-o5vbwnq5f7feedwu-8551
=== modified file 'admin/ChangeLog'
--- a/admin/ChangeLog   2014-06-25 05:57:51 +0000
+++ b/admin/ChangeLog   2014-06-25 06:03:13 +0000
@@ -1,5 +1,12 @@
 2014-06-25  Glenn Morris  <address@hidden>
 
+       * unidata/Makefile.in (${top_srcdir}/src/macuvs.h): Make and load .elc.
+       (.el.elc): Replace with pattern rule.
+       (%.elc): New.
+       (unidata.txt): Use $<.
+       (compile): Remove.
+       (${DSTDIR}/charprop.el): Use order-only prereqs rather than a sub-make.
+
        * unidata/uvs.el (uvs-print-table-ivd): Fix free variable typo.
 
 2014-06-21  Glenn Morris  <address@hidden>

=== modified file 'admin/unidata/Makefile.in'
--- a/admin/unidata/Makefile.in 2014-06-13 23:05:00 +0000
+++ b/admin/unidata/Makefile.in 2014-06-25 06:03:13 +0000
@@ -35,24 +35,23 @@
 
 all: ${top_srcdir}/src/macuvs.h ${DSTDIR}/charprop.el
 
-${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt
-       ${EMACS} -batch -l "${srcdir}/uvs.el" \
+## Specify .elc as an order-only prereq so as to not needlessly rebuild
+## target just because the .elc is missing.
+## Same with charprop.el below.
+${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | \
+  ${srcdir}/uvs.elc
+       ${emacs} -L ${srcdir} -l uvs \
          --eval '(uvs-print-table-ivd "${srcdir}/IVD_Sequences.txt" 
"Adobe-Japan1")' \
          > $@
 
-.el.elc:
+%.elc: %.el
        ${emacs} -f batch-byte-compile $<
 
 unidata.txt: ${srcdir}/UnicodeData.txt
-       sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < 
${srcdir}/UnicodeData.txt > $@
-
-compile: ${srcdir}/unidata-gen.elc
-
-## Depend on .el rather than .elc so as not to needlessly 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} compile unidata.txt EMACS="${EMACS}"
+       sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < $< > $@
+
+${DSTDIR}/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`; \
        fi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]