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

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

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
1.6     ! takayama   16:        (cd ${BUILD}/Debug/cfep.app ; ln -s ${OpenXM_HOME} .)
1.1       takayama   17:        mkdir -p ${BUILD}/Release/cfep.app
1.6     ! takayama   18:        (cd ${BUILD}/Release/cfep.app ; ln -s ${OpenXM_HOME} .)
1.1       takayama   19:        rm -f ${BUILD}/Default/cfep.app/OpenXM
                     20:        mkdir -p ${BUILD}/Default/cfep.app
1.6     ! takayama   21:        (cd ${BUILD}/Default/cfep.app ; ln -s ${OpenXM_HOME} .)
1.1       takayama   22:        make setup-cfep-fix
1.2       takayama   23: # To debug html intro at ../doc
                     24:        (cd ../doc ; ln -s ${OpenXM_HOME}/doc/cfep/html-ja_JP.utf8 .)
1.6     ! takayama   25:        cp `which nkf` ${OpenXM_HOME}/bin
1.1       takayama   26: setup-cfep-fix:
1.6     ! takayama   27:        (rm -f ${OpenXM_HOME}/lib/asir/cfep-init.rr ; cd ${OpenXM_HOME}/lib/asir ; ln -s ${OpenXM_HOME}/src/asir-contrib/packages/src/cfep-init.rr .)
1.1       takayama   28:
1.2       takayama   29: install:  cfep-grep
1.1       takayama   30:        mkdir -p ${OpenXM_HOME}/doc/cfep
                     31:        mkdir -p ${OpenXM_HOME}/lib/cfep
                     32:        cp ../Doc/intro-ja.html ${OpenXM_HOME}/doc/cfep
                     33:        cp ../Doc/intro-en.html ${OpenXM_HOME}/doc/cfep
                     34:        cp ../Doc/*.png ${OpenXM_HOME}/doc/cfep
                     35:        cp cfep.init ${OpenXM_HOME}/lib/cfep
1.2       takayama   36:        cp cfep-grep ${OpenXM_HOME}/bin
1.4       takayama   37:        cp ../tests/cfep-opengl.rr ${OpenXM_HOME}/lib/asir-contrib
1.2       takayama   38:        cp `which nkf` ~/OX4/OpenXM/bin
1.1       takayama   39:
                     40: clean:
1.2       takayama   41:        rm -f tmp-* gendoc cfep-grep
1.1       takayama   42: dist-cfep: gentar install
                     43:        rm -rf work
                     44:        mkdir work
                     45:        (cd work ; (cd ${OpenXM_HOME}/.. ; \
1.2       takayama   46:                  tar cf - OpenXM/lib/libgc* OpenXM/lib/libgmp* OpenXM/rc \
1.1       takayama   47:                    OpenXM/bin/ox OpenXM/bin/ox_asir OpenXM/bin/asir \
                     48:                        OpenXM/lib/cfep OpenXM/lib/sm1/bin \
                     49:                        OpenXM/doc/cfep )  | tar xvf -)
                     50:        (cd work ; (cd ${OpenXM_HOME}/.. ; \
                     51:                  tar cf - --exclude help --exclude help-jp --exclude help-eg  OpenXM/lib/asir  )  | tar xvf -)
1.2       takayama   52:        (cd work/OpenXM/rc ; make clean)
1.1       takayama   53:        rm -rf work/OpenXM/lib/asir/help* work/OpenXM/lib/asir/cfep-init.rr
                     54:        mkdir work/OpenXM/lib/asir-contrib
                     55:        (cd work/OpenXM/lib/asir-contrib ; (cd ${OpenXM_HOME}/src/asir-contrib/packages/src ; tar cf - * )  | tar xvf -)
                     56:        rm -f work/OpenXM/lib/asir-contrib/noro_rewrite.rr
                     57:        (cp ${OpenXM_HOME}/src/asir-contrib/testing/noro/new_rewrite.rr work/OpenXM/lib/asir-contrib/noro_rewrite.rr)
1.5       takayama   58:        (cp ../tests/cfep-opengl.rr work/OpenXM/lib/asir-contrib)
1.1       takayama   59:        rm -f work/OpenXM/bin/ox work/OpenXM/bin/asir
                     60:        (cp ${OpenXM_HOME}/bin/ox work/OpenXM/bin)
                     61:        (cp ${OpenXM_HOME}/bin/asir work/OpenXM/bin)
                     62:        (cp ${OpenXM_HOME}/bin/ox_sm1 work/OpenXM/bin)
                     63:        (cp ${OpenXM_HOME}/bin/ox_texmacs work/OpenXM/bin)
                     64:        (cp ${OpenXM_HOME}/bin/ox100start work/OpenXM/bin)
                     65:        (cp ${OpenXM_HOME}/bin/ox work/OpenXM/bin)
                     66:        (cp ${OpenXM_HOME}/bin/oxlog work/OpenXM/bin)
1.3       takayama   67: #      (cp ${OpenXM_HOME}/bin/oxgreph work/OpenXM/bin)
1.2       takayama   68:        (cp ${OpenXM_HOME}/bin/nkf work/OpenXM/bin)
1.3       takayama   69:        (cp ${OpenXM_HOME}/bin/sm1 work/OpenXM/bin)
                     70:        (cp ${OpenXM_HOME}/bin/ox_k0 work/OpenXM/bin)
1.1       takayama   71:        (mkdir -p work/OpenXM/lib/sm1 ; cp -r ${OpenXM_HOME}/lib/sm1/*.sm1 work/OpenXM/lib/sm1)
                     72:        (cp ${OpenXM_HOME}/lib/sm1/*.asir work/OpenXM/lib/sm1)
                     73:        (cp -r ${OpenXM_HOME}/lib/sm1/Resource work/OpenXM/lib/sm1)
                     74: # It is not a static linked program. So, you will need a copy of libraries, too.
                     75: #      (cd work/OpenXM ; tar xzf ../../tmp-OpenXM-html.tar.gz)
                     76:        (cd ${BUILD}/Release ; tar czvf - cfep.app) | (cd work; tar xzf -)
                     77:        rm -f work/cfep.app/OpenXM
                     78:        (cd work; mv OpenXM cfep.app)
                     79: #
                     80:        -(cd work; ln -s cfep.app/OpenXM .)
                     81:        -mkdir -p work/Samples
                     82: #      Copy files from Samples ; cp ../Sample/?? work/Samples
                     83:        cp ../Samples/*.rr work/Samples
                     84: #      (cd work; tar czvf cfep.tar.gz cfep.app)
                     85: #      @echo "work/cfep.tar.gz is for the distribution."
                     86:        @echo "Generate diskimage by hand. Name should be cfep-200xmmdd.dmg.gz"
                     87:        @echo "Put it under /home/web/HOME/taka/2005/cfep"
                     88:        @echo "Doc/intro-ja.html is used cfep intro on web, too"
                     89:
                     90: gentar:
                     91: #      @if [ ! -f tmp-OpenXM-html.tar.gz ]; then \
                     92: #              scp taka@lemon.math.kobe-u.ac.jp:this05/misc-2005/A1/cfep/package/tmp-OpenXM-html.tar.gz . ; \
                     93: #      fi
                     94:
                     95:
                     96: # Do it at orange2
                     97: gentar-html:
                     98:        @if [ ! -f tmp-OpenXM-html.tar.gz ]; then \
                     99:                (cd /home/web/OpenXM/Current ; tar czvf - doc/asir2000/html-jp) >tmp-OpenXM-html.tar.gz ; \
                    100:        fi
                    101:
                    102: copy-intro-ja:
                    103:        scp ../Doc/intro-ja.html taka@lemon.math.kobe-u.ac.jp:/home/web/HOME/taka/2005/cfep/index-ja.html
                    104: # Copy screenshots, too.
                    105:        scp ../Doc/*.png taka@lemon.math.kobe-u.ac.jp:/home/web/HOME/taka/2005/cfep
                    106:
                    107:
1.2       takayama  108: gendoc: gendoc.c
                    109:        gcc -o gendoc gendoc.c
1.1       takayama  110:
1.2       takayama  111: cfep-grep: cfep-grep.c
                    112:        gcc -o cfep-grep -I${OpenXM_HOME}/include cfep-grep.c -L${OpenXM_HOME}/lib -lox_pathfinder
1.1       takayama  113:

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