*** empty log message ***
[m17n/m17n-lib-js.git] / Makefile
index 40d4336..87057c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,16 @@
-DIST1=/var/www/mim
-DIST2=/project/web/extra/m17n-lib/mim-js/
+DIST=/project/web/extra/m17n-lib/mim-js/
 FILES=index.html latn-post.js mim.js th-kesmanee.js
 
 upload:
+       @updated=""; \
        for f in ${FILES}; do \
-         if [ ! -f ${DIST1}/$$f -o $$f -nt ${DIST1}/$$f ] ; then \
+         if [ ! -f ${DIST}/$$f -o $$f -nt ${DIST}/$$f ] ; then \
            echo $$f; \
-           cp $$f ${DIST1}; \
-           cp $$f ${DIST2}; \
+           cp $$f ${DIST}; \
+           updated="1"; \
          fi; \
-       done
-       cd /project/web/source/m17n-lib; make
+       done; \
+       if [ -n "$$updated" ] ; then \
+         echo $$updated; \
+         cd /project/web/source/m17n-lib; make; \
+       fi