[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep / package

Annotation of OpenXM/src/cfep/package/Makefile, Revision 1.1.1.1

1.1       takayama    1: # Moved from misc-2005/12/xcode/Makefile.
                      2: BUILD=${HOME}/tmp/misc-2005/A1/cfep/build
                      3: OpenXM_HOME=${HOME}/OX4/OpenXM
                      4: usage:
                      5:        @echo ${BUILD}
                      6:        @echo "setup-cfep (developer), clean, "
                      7:        @echo "dist-cfep (build a distribution under work), install, gentar,"
                      8:        @echo "copy-intro-ja : Copy intro-ja.html and images to /home/web/HOME/taka/2005/cfep/index-ja.html"
                      9:        @echo "gentar-html(orange2) --- tmporal"
                     10:
                     11: setup-cfep:
                     12:        @echo "Generate symbolic links for cfep"
                     13:        rm -f ${BUILD}/Debug/cfep.app/OpenXM
                     14:        rm -rf ${BUILD}/Release/cfep.app/OpenXM
                     15:        mkdir -p ${BUILD}/Debug/cfep.app
                     16:        (cd ${BUILD}/Debug/cfep.app ; ln -s ~/OX4/OpenXM .)
                     17:        mkdir -p ${BUILD}/Release/cfep.app
                     18:        (cd ${BUILD}/Release/cfep.app ; ln -s ~/OX4/OpenXM .)
                     19:        rm -f ${BUILD}/Default/cfep.app/OpenXM
                     20:        mkdir -p ${BUILD}/Default/cfep.app
                     21:        (cd ${BUILD}/Default/cfep.app ; ln -s ~/OX4/OpenXM .)
                     22:        make setup-cfep-fix
                     23: setup-cfep-fix:
                     24:        (cd ~/OX4/OpenXM/lib/asir ; ln -s ~/OX4/OpenXM/src/asir-contrib/packages/src/cfep-init.rr .)
                     25:
                     26: install:
                     27:        mkdir -p ${OpenXM_HOME}/doc/cfep
                     28:        mkdir -p ${OpenXM_HOME}/lib/cfep
                     29:        cp ../Doc/intro-ja.html ${OpenXM_HOME}/doc/cfep
                     30:        cp ../Doc/intro-en.html ${OpenXM_HOME}/doc/cfep
                     31:        cp ../Doc/*.png ${OpenXM_HOME}/doc/cfep
                     32:        cp cfep.init ${OpenXM_HOME}/lib/cfep
                     33:
                     34: clean:
                     35:        rm -f tmp-*
                     36: dist-cfep: gentar install
                     37:        rm -rf work
                     38:        mkdir work
                     39:        (cd work ; (cd ${OpenXM_HOME}/.. ; \
                     40:                  tar cf - OpenXM/lib/libgc* OpenXM/lib/libgmp* \
                     41:                    OpenXM/bin/ox OpenXM/bin/ox_asir OpenXM/bin/asir \
                     42:                        OpenXM/lib/cfep OpenXM/lib/sm1/bin \
                     43:                        OpenXM/doc/cfep )  | tar xvf -)
                     44:        (cd work ; (cd ${OpenXM_HOME}/.. ; \
                     45:                  tar cf - --exclude help --exclude help-jp --exclude help-eg  OpenXM/lib/asir  )  | tar xvf -)
                     46:        rm -rf work/OpenXM/lib/asir/help* work/OpenXM/lib/asir/cfep-init.rr
                     47:        mkdir work/OpenXM/lib/asir-contrib
                     48:        (cd work/OpenXM/lib/asir-contrib ; (cd ${OpenXM_HOME}/src/asir-contrib/packages/src ; tar cf - * )  | tar xvf -)
                     49:        rm -f work/OpenXM/lib/asir-contrib/noro_rewrite.rr
                     50:        (cp ${OpenXM_HOME}/src/asir-contrib/testing/noro/new_rewrite.rr work/OpenXM/lib/asir-contrib/noro_rewrite.rr)
                     51:        rm -f work/OpenXM/bin/ox work/OpenXM/bin/asir
                     52:        (cp ${OpenXM_HOME}/bin/ox work/OpenXM/bin)
                     53:        (cp ${OpenXM_HOME}/bin/asir work/OpenXM/bin)
                     54:        (cp ${OpenXM_HOME}/bin/ox_sm1 work/OpenXM/bin)
                     55:        (cp ${OpenXM_HOME}/bin/ox_texmacs work/OpenXM/bin)
                     56:        (cp ${OpenXM_HOME}/bin/ox100start work/OpenXM/bin)
                     57:        (cp ${OpenXM_HOME}/bin/ox work/OpenXM/bin)
                     58:        (cp ${OpenXM_HOME}/bin/oxlog work/OpenXM/bin)
                     59:        (mkdir -p work/OpenXM/lib/sm1 ; cp -r ${OpenXM_HOME}/lib/sm1/*.sm1 work/OpenXM/lib/sm1)
                     60:        (cp ${OpenXM_HOME}/lib/sm1/*.asir work/OpenXM/lib/sm1)
                     61:        (cp -r ${OpenXM_HOME}/lib/sm1/Resource work/OpenXM/lib/sm1)
                     62: # It is not a static linked program. So, you will need a copy of libraries, too.
                     63: #      (cd work/OpenXM ; tar xzf ../../tmp-OpenXM-html.tar.gz)
                     64:        (cd ${BUILD}/Release ; tar czvf - cfep.app) | (cd work; tar xzf -)
                     65:        rm -f work/cfep.app/OpenXM
                     66:        (cd work; mv OpenXM cfep.app)
                     67: #
                     68:        -(cd work; ln -s cfep.app/OpenXM .)
                     69:        -mkdir -p work/Samples
                     70: #      Copy files from Samples ; cp ../Sample/?? work/Samples
                     71:        cp ../Samples/*.rr work/Samples
                     72: #      (cd work; tar czvf cfep.tar.gz cfep.app)
                     73: #      @echo "work/cfep.tar.gz is for the distribution."
                     74:        @echo "Generate diskimage by hand. Name should be cfep-200xmmdd.dmg.gz"
                     75:        @echo "Put it under /home/web/HOME/taka/2005/cfep"
                     76:        @echo "Doc/intro-ja.html is used cfep intro on web, too"
                     77:
                     78: gentar:
                     79: #      @if [ ! -f tmp-OpenXM-html.tar.gz ]; then \
                     80: #              scp taka@lemon.math.kobe-u.ac.jp:this05/misc-2005/A1/cfep/package/tmp-OpenXM-html.tar.gz . ; \
                     81: #      fi
                     82:
                     83:
                     84: # Do it at orange2
                     85: gentar-html:
                     86:        @if [ ! -f tmp-OpenXM-html.tar.gz ]; then \
                     87:                (cd /home/web/OpenXM/Current ; tar czvf - doc/asir2000/html-jp) >tmp-OpenXM-html.tar.gz ; \
                     88:        fi
                     89:
                     90: copy-intro-ja:
                     91:        scp ../Doc/intro-ja.html taka@lemon.math.kobe-u.ac.jp:/home/web/HOME/taka/2005/cfep/index-ja.html
                     92: # Copy screenshots, too.
                     93:        scp ../Doc/*.png taka@lemon.math.kobe-u.ac.jp:/home/web/HOME/taka/2005/cfep
                     94:
                     95:
                     96:
                     97:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>