*** empty log message ***
[m17n/m17n-lib-js.git] / Makefile
index 87057c3..58383c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,20 @@
 DIST=/project/web/extra/m17n-lib/mim-js/
-FILES=index.html latn-post.js mim.js th-kesmanee.js
+FILES=index.html test.html imlist.xml xex.js mim.js /usr/local/work/m17n-db-xml/MIM/*.mimx
 
 upload:
        @updated=""; \
        for f in ${FILES}; do \
-         if [ ! -f ${DIST}/$$f -o $$f -nt ${DIST}/$$f ] ; then \
+         base=`basename $$f`; \
+         if [ ! -f "${DIST}/$$base" ] ; then \
+           echo $$f; \
+           cp $$f ${DIST}; \
+           updated="1"; \
+         elif [ "$$f" -nt "${DIST}/$$base" ] ; then \
            echo $$f; \
            cp $$f ${DIST}; \
            updated="1"; \
          fi; \
        done; \
        if [ -n "$$updated" ] ; then \
-         echo $$updated; \
          cd /project/web/source/m17n-lib; make; \
        fi