From: Kenichi Handa Date: Thu, 12 Feb 2004 07:25:52 +0000 (+0000) Subject: (install): Copy updated files only. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1535 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c80ccbbf3314d2245cb2e2b86267fff4597551e7;p=emacs.git (install): Copy updated files only. --- diff --git a/admin/charsets/Makefile b/admin/charsets/Makefile index 771a876f762..6def349d96d 100644 --- a/admin/charsets/Makefile +++ b/admin/charsets/Makefile @@ -313,9 +313,23 @@ EBCDIC%.map: ${GLIBC_CHARMAPS}/EBCDIC-% mapconv compact.awk # Generating $@... @mapconv $< '/^<.*[ ]\/x/' GLIBC-1 compact.awk > $@ -install: ${CHARSETS} ${TRANS_TABLE} - cp ${CHARSETS} ../../etc/charsets - cp ${TRANS_TABLE} ../../lisp/international +install: + @for f in ${CHARSETS}; do \ + if test -r $$f; then \ + if ! cmp -s $$f ../../etc/charsets/$$f; then \ + echo updating $$f; \ + cp $$f ../../etc/charsets; \ + fi; \ + fi; \ + done + @for f in ${TRANS_TABLE}; do \ + if test -r $$f; then \ + if ! cmp -s $$f ../../lisp/international/$$f; then \ + echo updating $$f; \ + cp $$f ../../lisp/international; \ + fi; \ + fi; \ + done # Clear files that are automatically generated. clean: