X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile;h=87057c36054e857186b1874772dadb5506bb9204;hb=74c400ab1169385fe2da360723bd0570b6cbcdaf;hp=40d4336095287356fc954817fb8e39be9f6ec63e;hpb=5b2750dcce4092129ccabfdedd3b1a0ebc45e8a0;p=m17n%2Fm17n-lib-js.git diff --git a/Makefile b/Makefile index 40d4336..87057c3 100644 --- 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