diff options
| author | Glenn Morris | 2014-06-24 23:03:13 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-06-24 23:03:13 -0700 |
| commit | 4c920f37c5bc731149814adbe3cf5c8d876f0417 (patch) | |
| tree | 65154f58db4767e3a639a82f525067e4beaccc9f /admin | |
| parent | 448dd61ceba6e2395a1571e17ee63bdc2ccd06a6 (diff) | |
| download | emacs-4c920f37c5bc731149814adbe3cf5c8d876f0417.tar.gz emacs-4c920f37c5bc731149814adbe3cf5c8d876f0417.zip | |
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.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 7 | ||||
| -rw-r--r-- | admin/unidata/Makefile.in | 21 |
2 files changed, 17 insertions, 11 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index a7eb42e321f..d53049f95c4 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2014-06-25 Glenn Morris <rgm@gnu.org> | 1 | 2014-06-25 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * unidata/Makefile.in (${top_srcdir}/src/macuvs.h): Make and load .elc. | ||
| 4 | (.el.elc): Replace with pattern rule. | ||
| 5 | (%.elc): New. | ||
| 6 | (unidata.txt): Use $<. | ||
| 7 | (compile): Remove. | ||
| 8 | (${DSTDIR}/charprop.el): Use order-only prereqs rather than a sub-make. | ||
| 9 | |||
| 3 | * unidata/uvs.el (uvs-print-table-ivd): Fix free variable typo. | 10 | * unidata/uvs.el (uvs-print-table-ivd): Fix free variable typo. |
| 4 | 11 | ||
| 5 | 2014-06-21 Glenn Morris <rgm@gnu.org> | 12 | 2014-06-21 Glenn Morris <rgm@gnu.org> |
diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in index c86fff0bab4..6b253ea565b 100644 --- a/admin/unidata/Makefile.in +++ b/admin/unidata/Makefile.in | |||
| @@ -35,24 +35,23 @@ emacs = "${EMACS}" -batch --no-site-file --no-site-lisp | |||
| 35 | 35 | ||
| 36 | all: ${top_srcdir}/src/macuvs.h ${DSTDIR}/charprop.el | 36 | all: ${top_srcdir}/src/macuvs.h ${DSTDIR}/charprop.el |
| 37 | 37 | ||
| 38 | ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | 38 | ## Specify .elc as an order-only prereq so as to not needlessly rebuild |
| 39 | ${EMACS} -batch -l "${srcdir}/uvs.el" \ | 39 | ## target just because the .elc is missing. |
| 40 | ## Same with charprop.el below. | ||
| 41 | ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | \ | ||
| 42 | ${srcdir}/uvs.elc | ||
| 43 | ${emacs} -L ${srcdir} -l uvs \ | ||
| 40 | --eval '(uvs-print-table-ivd "${srcdir}/IVD_Sequences.txt" "Adobe-Japan1")' \ | 44 | --eval '(uvs-print-table-ivd "${srcdir}/IVD_Sequences.txt" "Adobe-Japan1")' \ |
| 41 | > $@ | 45 | > $@ |
| 42 | 46 | ||
| 43 | .el.elc: | 47 | %.elc: %.el |
| 44 | ${emacs} -f batch-byte-compile $< | 48 | ${emacs} -f batch-byte-compile $< |
| 45 | 49 | ||
| 46 | unidata.txt: ${srcdir}/UnicodeData.txt | 50 | unidata.txt: ${srcdir}/UnicodeData.txt |
| 47 | sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < ${srcdir}/UnicodeData.txt > $@ | 51 | sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < $< > $@ |
| 48 | 52 | ||
| 49 | compile: ${srcdir}/unidata-gen.elc | 53 | ${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.el ${srcdir}/UnicodeData.txt | \ |
| 50 | 54 | ${srcdir}/unidata-gen.elc unidata.txt | |
| 51 | ## Depend on .el rather than .elc so as not to needlessly rebuild | ||
| 52 | ## uni-*.el files just because .elc is missing. | ||
| 53 | ## Same for UnicodeData.txt v unidata.txt. | ||
| 54 | ${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.el ${srcdir}/UnicodeData.txt | ||
| 55 | ${MAKE} compile unidata.txt EMACS="${EMACS}" | ||
| 56 | -if [ -f "$@" ]; then \ | 55 | -if [ -f "$@" ]; then \ |
| 57 | cd ${DSTDIR} && chmod +w charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; \ | 56 | cd ${DSTDIR} && chmod +w charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; \ |
| 58 | fi | 57 | fi |