version 1.17, 2002/07/28 08:10:24 |
version 1.22, 2002/08/10 07:05:47 |
|
|
# $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.16 2002/07/28 07:04:22 takayama Exp $ |
# $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.21 2002/08/09 07:51:28 fujimoto Exp $ |
OpenXM_TOP=../../../../OpenXM |
OpenXM_TOP=../../../../OpenXM |
ASIR_LANG=ja |
ASIR_LANG=ja |
#ASIR_LANG=en |
#ASIR_LANG=en |
|
VERSION=1.2.2 |
WGET_ARG=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/asir/asirwin-${ASIR_LANG}.tgz |
WGET_ARG=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/asir/asirwin-${ASIR_LANG}.tgz |
|
WGET_PHC=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/phc.exe |
|
WGET_HEAD=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/Head/openxm-head.tar.gz |
|
|
STARTEXE=c:/windows/command/start.exe |
|
WINASIR=c:/home/asir |
WINASIR=c:/home/asir |
|
|
usage: |
usage: |
@echo "Targets: all build-tgz clean clean-work link-for-debug" |
@echo "Targets: all build-tgz clean clean-work link-for-debug" |
@echo " remove-experimental " |
@echo " remove-experimental gen-cd" |
|
|
clean: |
clean: |
-rm -rf OpenXM-win .copy-binary-done .copy-binary-asir-done OpenXM-win.tgz .OpenXM-win.tgz.done oxasir-win.rr .copy-cygwin-dlls-done .build-binary-openxm-cygwin-done |
-rm -rf OpenXM-win .copy-binary-done .copy-binary-asir-done .copy-binary-phc-done OpenXM-win.tgz .OpenXM-win.tgz.done oxasir-win.rr .copy-cygwin-dlls-done .build-binary-openxm-cygwin-done OpenXM-unix OpenXM-doc |
|
|
clean-work: |
clean-work: |
-rm -rf work |
-rm -rf work |
|
clean0: |
|
-rm -rf .copy-binary-done oxasir-win.rr .copy-cygwin-dlls-done |
|
|
all: copy-binary copy-binary-asir win-correction win-correction-clean |
all: copy-binary-phc copy-binary copy-binary-asir win-correction win-correction-clean |
|
|
build-binary-openxm-cygwin: |
build-binary-openxm-cygwin: |
if [ ! -f .build-binary-openxm-cygwin-done ] ; then \ |
if [ ! -f .build-binary-openxm-cygwin-done ] ; then \ |
(cd ${OpenXM_TOP}/src ; make install-kan-ox ) ; \ |
(cd ${OpenXM_TOP}/src ; make install-kan-ox ; make install-phc) ; \ |
touch .build-binary-openxm-cygwin-done ; \ |
touch .build-binary-openxm-cygwin-done ; \ |
fi |
fi |
|
|
Line 30 copy-binary-openxm-cygwin: build-binary-openxm-cygwin |
|
Line 35 copy-binary-openxm-cygwin: build-binary-openxm-cygwin |
|
-mkdir OpenXM-win/src |
-mkdir OpenXM-win/src |
if [ ! -f .copy-binary-done ] ; then \ |
if [ ! -f .copy-binary-done ] ; then \ |
(cd OpenXM-win ; \ |
(cd OpenXM-win ; \ |
rsync -avz --delete ../${OpenXM_TOP}/bin . ; \ |
rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/bin . ; \ |
rsync -avz --delete ../${OpenXM_TOP}/lib . ; \ |
rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/lib . ; \ |
rsync -avz --delete ../${OpenXM_TOP}/rc . ; \ |
rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/rc . ; \ |
rsync -avz --delete ../${OpenXM_TOP}/man . ; \ |
rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/man . ; \ |
rsync -avz --delete ../${OpenXM_TOP}/src/asir-contrib src ; \ |
rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/src/asir-contrib src ; \ |
find . -name 'CVS' -print | xargs rm -rf ; \ |
find . -name 'CVS' -print | xargs rm -rf ; \ |
) ; \ |
) ; \ |
cp readme-ja.html OpenXM-win ; \ |
cp Readme-CD/readme-ja.html OpenXM-win ; \ |
|
cp Readme-CD/readme-en.html OpenXM-win ; \ |
touch .copy-binary-done ; \ |
touch .copy-binary-done ; \ |
fi |
fi |
|
|
Line 65 copy-binary-asir-from-local-disk: |
|
Line 71 copy-binary-asir-from-local-disk: |
|
touch .copy-binary-asir-done ; \ |
touch .copy-binary-asir-done ; \ |
fi |
fi |
|
|
|
copy-binary-phc: |
|
if [ ! -f .copy-binary-phc-done ] ; then \ |
|
make copy-binary-phc-from-internet ; \ |
|
fi |
|
|
|
copy-binary-phc-from-internet: |
|
if [ ! -f ${OpenXM_TOP}/bin/phc.exe ] ; then \ |
|
(cd ${OpenXM_TOP}/bin ; wget ${WGET_PHC} ) ; \ |
|
fi |
|
touch .copy-binary-phc-done |
|
|
copy-cygwin-dlls: |
copy-cygwin-dlls: |
if [ ! -f .copy-cygwin-dlls-done ] ; then \ |
if [ ! -f .copy-cygwin-dlls-done ] ; then \ |
cp /bin/cygwin1.dll OpenXM-win/bin-windows ; \ |
cp /bin/cygwin1.dll OpenXM-win/bin-windows ; \ |
Line 79 win-correction: copy-binary oxasir-win.rr |
|
Line 96 win-correction: copy-binary oxasir-win.rr |
|
make win-correction2 |
make win-correction2 |
win-correction1: build-bat copy-cygwin-dlls |
win-correction1: build-bat copy-cygwin-dlls |
-mkdir OpenXM-win/bin-windows |
-mkdir OpenXM-win/bin-windows |
-cp ${STARTEXE} OpenXM-win/bin-windows |
|
# (cd OpenXM-win/rc ; make clean ; make) |
# (cd OpenXM-win/rc ; make clean ; make) |
win-correction2: win-correction1 |
win-correction2: win-correction1 |
-cp ${STARTEXE} OpenXM-win/bin |
|
-cp ${STARTEXE} OpenXM-win/asir/bin |
|
cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin |
cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin |
cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin |
cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin |
cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin |
cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin |
Line 138 remove-experimental: |
|
Line 152 remove-experimental: |
|
-rm -f OpenXM-win/bin-windows/*web*.bat |
-rm -f OpenXM-win/bin-windows/*web*.bat |
|
|
|
|
|
gen-cd: |
|
-(make all; make remove-experimental) |
|
-mkdir OpenXM-unix |
|
cp Readme-CD/readme-unix-en.html OpenXM-unix |
|
(cd OpenXM-unix; wget ${WGET_HEAD} ) |
|
@echo "Copy OpenXM-unix and OpenXM-win to the CD." |
|
|