diff options
| author | Paul Eggert | 2015-01-01 16:44:53 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-01-01 16:45:22 -0800 |
| commit | 1cde56dee2dc62e5c368b266e4193c031ce0ed26 (patch) | |
| tree | 8e5f66db8b8be8729178d81f77a8ff576168c18a /admin | |
| parent | 52a4e87c630ea397408efe4f8486be55e1199905 (diff) | |
| download | emacs-1cde56dee2dc62e5c368b266e4193c031ce0ed26.tar.gz emacs-1cde56dee2dc62e5c368b266e4193c031ce0ed26.zip | |
Less 'make' chatter for unidata
* unidata/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_)
(am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0, am__v_at_1):
New macros, from ../src/Makefile.in.
(${top_srcdir}/src/macuvs.h, %.elc, unidata.txt)
(${unidir}/charprop.el, unifiles): Use them.
(PHONY_EXTRAS): New macro.
(.PHONY, ${unidir}/charprop.el): Use it.
(FORCE): Remove; all uses replaced by PHONY_EXTRAS manipulation.
(${unidir}/charprop.el, extraclean):
Use 'make' conditionals rather than shell.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 14 | ||||
| -rw-r--r-- | admin/unidata/Makefile.in | 50 |
2 files changed, 47 insertions, 17 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index f311eea696c..d7025657e78 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2015-01-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Less 'make' chatter for unidata | ||
| 4 | * unidata/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_GEN, am__v_GEN_) | ||
| 5 | (am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0, am__v_at_1): | ||
| 6 | New macros, from ../src/Makefile.in. | ||
| 7 | (${top_srcdir}/src/macuvs.h, %.elc, unidata.txt) | ||
| 8 | (${unidir}/charprop.el, unifiles): Use them. | ||
| 9 | (PHONY_EXTRAS): New macro. | ||
| 10 | (.PHONY, ${unidir}/charprop.el): Use it. | ||
| 11 | (FORCE): Remove; all uses replaced by PHONY_EXTRAS manipulation. | ||
| 12 | (${unidir}/charprop.el, extraclean): | ||
| 13 | Use 'make' conditionals rather than shell. | ||
| 14 | |||
| 1 | 2015-01-01 Paul Eggert <eggert@cs.ucla.edu> | 15 | 2015-01-01 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 16 | ||
| 3 | * update-copyright (emacsver): Change to emacsver.tex.in. | 17 | * update-copyright (emacsver): Change to emacsver.tex.in. |
diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in index 7b96c6d478f..777d1270fff 100644 --- a/admin/unidata/Makefile.in +++ b/admin/unidata/Makefile.in | |||
| @@ -31,6 +31,19 @@ EMACS = ${top_builddir}/src/emacs | |||
| 31 | unidir = ${top_srcdir}/lisp/international | 31 | unidir = ${top_srcdir}/lisp/international |
| 32 | emacs = "${EMACS}" -batch --no-site-file --no-site-lisp | 32 | emacs = "${EMACS}" -batch --no-site-file --no-site-lisp |
| 33 | 33 | ||
| 34 | # 'make' verbosity. | ||
| 35 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
| 36 | |||
| 37 | AM_V_GEN = $(am__v_GEN_@AM_V@) | ||
| 38 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | ||
| 39 | am__v_GEN_0 = @echo " GEN " $@; | ||
| 40 | am__v_GEN_1 = | ||
| 41 | |||
| 42 | AM_V_at = $(am__v_at_@AM_V@) | ||
| 43 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | ||
| 44 | am__v_at_0 = @ | ||
| 45 | am__v_at_1 = | ||
| 46 | |||
| 34 | .PHONY: all unifiles | 47 | .PHONY: all unifiles |
| 35 | 48 | ||
| 36 | all: ${top_srcdir}/src/macuvs.h unifiles | 49 | all: ${top_srcdir}/src/macuvs.h unifiles |
| @@ -40,28 +53,31 @@ all: ${top_srcdir}/src/macuvs.h unifiles | |||
| 40 | ## Same with charprop.el below. | 53 | ## Same with charprop.el below. |
| 41 | ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | \ | 54 | ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | \ |
| 42 | ${srcdir}/uvs.elc | 55 | ${srcdir}/uvs.elc |
| 43 | ${emacs} -L ${srcdir} -l uvs \ | 56 | $(AM_V_GEN)${emacs} -L ${srcdir} -l uvs \ |
| 44 | --eval '(uvs-print-table-ivd (unmsys--file-name "${srcdir}/IVD_Sequences.txt") "Adobe-Japan1")' \ | 57 | --eval '(uvs-print-table-ivd (unmsys--file-name "${srcdir}/IVD_Sequences.txt") "Adobe-Japan1")' \ |
| 45 | > $@ | 58 | > $@ |
| 46 | 59 | ||
| 47 | %.elc: %.el | 60 | %.elc: %.el |
| 48 | ${emacs} -f batch-byte-compile $< | 61 | $(AM_V_GEN)${emacs} -f batch-byte-compile $< |
| 49 | 62 | ||
| 50 | unidata.txt: ${srcdir}/UnicodeData.txt | 63 | unidata.txt: ${srcdir}/UnicodeData.txt |
| 51 | sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < $< > $@ | 64 | $(AM_V_GEN)sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' \ |
| 65 | < $< > $@ | ||
| 52 | 66 | ||
| 53 | FORCE = | 67 | PHONY_EXTRAS = |
| 54 | FORCE: | 68 | .PHONY: $(PHONY_EXTRAS) |
| 55 | .PHONY: FORCE | ||
| 56 | 69 | ||
| 57 | ${unidir}/charprop.el: ${FORCE} ${srcdir}/unidata-gen.el \ | 70 | ${unidir}/charprop.el: ${srcdir}/unidata-gen.el \ |
| 58 | ${srcdir}/UnicodeData.txt ${srcdir}/BidiMirroring.txt \ | 71 | ${srcdir}/UnicodeData.txt ${srcdir}/BidiMirroring.txt \ |
| 59 | ${srcdir}/BidiBrackets.txt | \ | 72 | ${srcdir}/BidiBrackets.txt | \ |
| 60 | ${srcdir}/unidata-gen.elc unidata.txt | 73 | ${srcdir}/unidata-gen.elc unidata.txt |
| 61 | -if [ -f "$@" ]; then \ | 74 | ifneq (,$(wildcard $@)) |
| 62 | cd ${unidir} && chmod +w charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; \ | 75 | $(AM_V_at)cd $(unidir) && \ |
| 63 | fi | 76 | for f in charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; do \ |
| 64 | ${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \ | 77 | [ ! -f $$f ] || [ -w $$f ] || chmod +w $$f || exit; \ |
| 78 | done | ||
| 79 | endif | ||
| 80 | $(AM_V_GEN)${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \ | ||
| 65 | ${srcdir} "${unidir}" | 81 | ${srcdir} "${unidir}" |
| 66 | 82 | ||
| 67 | ## Check for deleted uni- files, and if any such, force a rebuild. | 83 | ## Check for deleted uni- files, and if any such, force a rebuild. |
| @@ -69,8 +85,8 @@ ${unidir}/charprop.el: ${FORCE} ${srcdir}/unidata-gen.el \ | |||
| 69 | ## to generate a Makefile fragment explicitly listing the uni- files, | 85 | ## to generate a Makefile fragment explicitly listing the uni- files, |
| 70 | ## which this file could include. If no fragment, rebuild everything. | 86 | ## which this file could include. If no fragment, rebuild everything. |
| 71 | unifiles: ${unidir}/charprop.el | 87 | unifiles: ${unidir}/charprop.el |
| 72 | for f in `sed -n 's/^;; FILE: //p' < $<`; do \ | 88 | $(AM_V_GEN)for f in `sed -n 's/^;; FILE: //p' < $<`; do \ |
| 73 | [ -f ${unidir}/$$f ] || { ${MAKE} $< FORCE=FORCE || exit 1; break; };\ | 89 | [ -f $(unidir)/$$f ] || exec $(MAKE) PHONY_EXTRAS=$< $<; \ |
| 74 | done | 90 | done |
| 75 | 91 | ||
| 76 | .PHONY: clean bootstrap-clean distclean maintainer-clean extraclean | 92 | .PHONY: clean bootstrap-clean distclean maintainer-clean extraclean |
| @@ -90,7 +106,7 @@ maintainer-clean: distclean | |||
| 90 | ## Cf leim/ja-dic (which is much slower). | 106 | ## Cf leim/ja-dic (which is much slower). |
| 91 | extraclean: | 107 | extraclean: |
| 92 | rm -f ${top_srcdir}/src/macuvs.h | 108 | rm -f ${top_srcdir}/src/macuvs.h |
| 93 | if test -f ${unidir}/charprop.el; then \ | 109 | ifneq (,$(wildcard $(unidir)/charprop.el)) |
| 94 | (cd ${unidir} && rm -f `sed -n 's/^;; FILE: //p' < charprop.el`); \ | 110 | cd $(unidir) && \ |
| 95 | rm -f ${unidir}/charprop.el; \ | 111 | rm -f `sed -n 's/^;; FILE: //p' < charprop.el` charprop.el |
| 96 | fi | 112 | endif |