]> git.eshelyaron.com Git - emacs.git/commitdiff
(install): Copy updated files only.
authorKenichi Handa <handa@m17n.org>
Thu, 12 Feb 2004 07:25:52 +0000 (07:25 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 12 Feb 2004 07:25:52 +0000 (07:25 +0000)
admin/charsets/Makefile

index 771a876f762ee7ad8519235ba3360c85ea7890cf..6def349d96d14f0331945d7f09ee20a8d3262c03 100644 (file)
@@ -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: