Annotation of OpenXM/src/cfep/package/Makefile, Revision 1.21
1.1 takayama 1: # Moved from misc-2005/12/xcode/Makefile.
2: OpenXM_HOME=${HOME}/OX4/OpenXM
1.21 ! takayama 3: #BUILD=${OpenXM_HOME}/src/cfep/build
! 4: BUILD=${HOME}/Library/Developer/Xcode/DerivedData/cfep-*/Build/Products
1.1 takayama 5: usage:
6: @echo ${BUILD}
7: @echo "setup-cfep (developer), clean, "
8: @echo "dist-cfep (build a distribution under work), install, gentar,"
9: @echo "copy-intro-ja : Copy intro-ja.html and images to /home/web/HOME/taka/2005/cfep/index-ja.html"
10: @echo "gentar-html(orange2) --- tmporal"
11:
12: setup-cfep:
13: @echo "Generate symbolic links for cfep"
14: rm -f ${BUILD}/Debug/cfep.app/OpenXM
15: rm -rf ${BUILD}/Release/cfep.app/OpenXM
16: mkdir -p ${BUILD}/Debug/cfep.app
1.7 takayama 17: (cd ${BUILD}/Debug/cfep.app ; ln -s ~/OX4/OpenXM .)
1.1 takayama 18: mkdir -p ${BUILD}/Release/cfep.app
1.7 takayama 19: (cd ${BUILD}/Release/cfep.app ; ln -s ~/OX4/OpenXM .)
1.1 takayama 20: rm -f ${BUILD}/Default/cfep.app/OpenXM
21: mkdir -p ${BUILD}/Default/cfep.app
1.7 takayama 22: (cd ${BUILD}/Default/cfep.app ; ln -s ~/OX4/OpenXM .)
1.1 takayama 23: make setup-cfep-fix
1.2 takayama 24: # To debug html intro at ../doc
25: (cd ../doc ; ln -s ${OpenXM_HOME}/doc/cfep/html-ja_JP.utf8 .)
1.10 takayama 26: -cp `which nkf` ~/OX4/OpenXM/bin
1.1 takayama 27: setup-cfep-fix:
1.7 takayama 28: (rm -f ~/OX4/OpenXM/lib/asir/cfep-init.rr ; cd ~/OX4/OpenXM/lib/asir ; ln -s ~/OX4/OpenXM/src/asir-contrib/packages/src/cfep-init.rr .)
1.1 takayama 29:
1.20 takayama 30: link-for-debug:
31: echo $(HOME)/Library/Developer/Xcode/DerivedData/cfep-*/Build/Products/Debug/cfep.app
32: (cd $(HOME)/Library/Developer/Xcode/DerivedData/cfep-*/Build/Products/Debug/cfep.app ; ln -s ~/OX4/OpenXM .)
33:
1.2 takayama 34: install: cfep-grep
1.1 takayama 35: mkdir -p ${OpenXM_HOME}/doc/cfep
36: mkdir -p ${OpenXM_HOME}/lib/cfep
37: cp ../Doc/intro-ja.html ${OpenXM_HOME}/doc/cfep
38: cp ../Doc/intro-en.html ${OpenXM_HOME}/doc/cfep
39: cp ../Doc/*.png ${OpenXM_HOME}/doc/cfep
40: cp cfep.init ${OpenXM_HOME}/lib/cfep
1.2 takayama 41: cp cfep-grep ${OpenXM_HOME}/bin
1.4 takayama 42: cp ../tests/cfep-opengl.rr ${OpenXM_HOME}/lib/asir-contrib
1.9 takayama 43: -cp `which nkf` ~/OX4/OpenXM/bin
1.1 takayama 44:
45: clean:
1.7 takayama 46: rm -f tmp-* gendoc cfep-grep ../doc/html-ja_JP.utf8
47:
1.1 takayama 48: dist-cfep: gentar install
49: rm -rf work
50: mkdir work
1.13 takayama 51: -cp install.txt work
1.1 takayama 52: (cd work ; (cd ${OpenXM_HOME}/.. ; \
1.2 takayama 53: tar cf - OpenXM/lib/libgc* OpenXM/lib/libgmp* OpenXM/rc \
1.18 takayama 54: OpenXM/bin \
1.1 takayama 55: OpenXM/lib/cfep OpenXM/lib/sm1/bin \
56: OpenXM/doc/cfep ) | tar xvf -)
57: (cd work ; (cd ${OpenXM_HOME}/.. ; \
1.11 ohara 58: tar cf - --exclude help --exclude help-ja --exclude help-en OpenXM/lib/asir ) | tar xvf -)
1.2 takayama 59: (cd work/OpenXM/rc ; make clean)
1.1 takayama 60: rm -rf work/OpenXM/lib/asir/help* work/OpenXM/lib/asir/cfep-init.rr
61: mkdir work/OpenXM/lib/asir-contrib
62: (cd work/OpenXM/lib/asir-contrib ; (cd ${OpenXM_HOME}/src/asir-contrib/packages/src ; tar cf - * ) | tar xvf -)
63: rm -f work/OpenXM/lib/asir-contrib/noro_rewrite.rr
64: (cp ${OpenXM_HOME}/src/asir-contrib/testing/noro/new_rewrite.rr work/OpenXM/lib/asir-contrib/noro_rewrite.rr)
1.5 takayama 65: (cp ../tests/cfep-opengl.rr work/OpenXM/lib/asir-contrib)
1.1 takayama 66: rm -f work/OpenXM/bin/ox work/OpenXM/bin/asir
67: (cp ${OpenXM_HOME}/bin/ox work/OpenXM/bin)
68: (cp ${OpenXM_HOME}/bin/asir work/OpenXM/bin)
69: (cp ${OpenXM_HOME}/bin/ox_sm1 work/OpenXM/bin)
70: (cp ${OpenXM_HOME}/bin/ox_texmacs work/OpenXM/bin)
71: (cp ${OpenXM_HOME}/bin/ox100start work/OpenXM/bin)
72: (cp ${OpenXM_HOME}/bin/ox work/OpenXM/bin)
73: (cp ${OpenXM_HOME}/bin/oxlog work/OpenXM/bin)
1.3 takayama 74: # (cp ${OpenXM_HOME}/bin/oxgreph work/OpenXM/bin)
1.2 takayama 75: (cp ${OpenXM_HOME}/bin/nkf work/OpenXM/bin)
1.3 takayama 76: (cp ${OpenXM_HOME}/bin/sm1 work/OpenXM/bin)
77: (cp ${OpenXM_HOME}/bin/ox_k0 work/OpenXM/bin)
1.15 takayama 78: (cp ${OpenXM_HOME}/bin/ox_cpp work/OpenXM/bin)
1.19 takayama 79: (cp ${OpenXM_HOME}/bin/ox_pari work/OpenXM/bin)
1.1 takayama 80: (mkdir -p work/OpenXM/lib/sm1 ; cp -r ${OpenXM_HOME}/lib/sm1/*.sm1 work/OpenXM/lib/sm1)
81: (cp ${OpenXM_HOME}/lib/sm1/*.asir work/OpenXM/lib/sm1)
82: (cp -r ${OpenXM_HOME}/lib/sm1/Resource work/OpenXM/lib/sm1)
83: # It is not a static linked program. So, you will need a copy of libraries, too.
84: # (cd work/OpenXM ; tar xzf ../../tmp-OpenXM-html.tar.gz)
85: (cd ${BUILD}/Release ; tar czvf - cfep.app) | (cd work; tar xzf -)
86: rm -f work/cfep.app/OpenXM
87: (cd work; mv OpenXM cfep.app)
88: #
89: -(cd work; ln -s cfep.app/OpenXM .)
90: -mkdir -p work/Samples
91: # Copy files from Samples ; cp ../Sample/?? work/Samples
92: cp ../Samples/*.rr work/Samples
93: # (cd work; tar czvf cfep.tar.gz cfep.app)
94: # @echo "work/cfep.tar.gz is for the distribution."
95: @echo "Generate diskimage by hand. Name should be cfep-200xmmdd.dmg.gz"
96: @echo "Put it under /home/web/HOME/taka/2005/cfep"
97: @echo "Doc/intro-ja.html is used cfep intro on web, too"
98:
99: gentar:
100: # @if [ ! -f tmp-OpenXM-html.tar.gz ]; then \
101: # scp taka@lemon.math.kobe-u.ac.jp:this05/misc-2005/A1/cfep/package/tmp-OpenXM-html.tar.gz . ; \
102: # fi
103:
104:
105: # Do it at orange2
106: gentar-html:
107: @if [ ! -f tmp-OpenXM-html.tar.gz ]; then \
1.12 ohara 108: (cd /home/web/OpenXM/Current ; tar czvf - doc/asir2000/html-ja) >tmp-OpenXM-html.tar.gz ; \
1.1 takayama 109: fi
110:
111: copy-intro-ja:
112: scp ../Doc/intro-ja.html taka@lemon.math.kobe-u.ac.jp:/home/web/HOME/taka/2005/cfep/index-ja.html
113: # Copy screenshots, too.
114: scp ../Doc/*.png taka@lemon.math.kobe-u.ac.jp:/home/web/HOME/taka/2005/cfep
115:
116:
1.2 takayama 117: gendoc: gendoc.c
118: gcc -o gendoc gendoc.c
1.1 takayama 119:
1.2 takayama 120: cfep-grep: cfep-grep.c
121: gcc -o cfep-grep -I${OpenXM_HOME}/include cfep-grep.c -L${OpenXM_HOME}/lib -lox_pathfinder
1.1 takayama 122:
1.16 takayama 123: copy-all-tmp:
1.17 takayama 124: mkdir -p work/OpenXM/share
1.16 takayama 125: -(cp ${OpenXM_HOME}/bin/[a-z]* work/OpenXM/bin)
126: -(cp ${OpenXM_HOME}/lib/[a-z]* work/OpenXM/lib)
127: -(cp -r ${OpenXM_HOME}/lib/java-support work/OpenXM/lib)
1.17 takayama 128: -(cp -r ${OpenXM_HOME}/share/oxmgraph work/OpenXM/share)
129: # -(cp -r ${OpenXM_HOME}/libexec work/OpenXM )
130: rm -f work/OpenXM/bin/gnuplot
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>