From c80ccbbf3314d2245cb2e2b86267fff4597551e7 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 12 Feb 2004 07:25:52 +0000 Subject: [PATCH] (install): Copy updated files only. --- admin/charsets/Makefile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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: -- 2.39.5