Annotation of OpenXM/src/asir-port/Makefile, Revision 1.16
1.16 ! takayama 1: # $OpenXM: OpenXM/src/asir-port/Makefile,v 1.15 2006/06/28 11:50:28 takayama Exp $
1.2 takayama 2: # touch for_knoppix ; make install
1.11 takayama 3: # to generate a distribution for knoppix.
4: #### Do not add extra spaces after the VERSION.
1.15 takayama 5: VERSION=1.2.3-7
1.11 takayama 6:
1.2 takayama 7: KNOPPIX_HOME=/home/knoppix
8: LIBS=alpi bfct bgk const cyclic defs.h dmul fctrdata fctrtest fff \
9: gr ifplot katsura mat nf num primdec ratint robot solve sp \
10: sturm xm
11: # bug: md5sum is called md5 in FreeBSD.
12: MD5=md5sum
13: OS=`uname -s`
14: OpenXM_HOME_=../..
15: RSYNC=rsync -avz -e ssh
1.16 ! takayama 16: #FTP_DIR=/home/ftp/pub/OpenXM/head/knoppix
! 17: FTP_DIR=/home/web/pub/OpenXM/head/knoppix
1.11 takayama 18: OpenXM_HOME=../../../OpenXM
1.1 takayama 19:
20: all:
21: install: all
22: @echo "Installing scripts for portaging asir by downloading."
1.2 takayama 23: -install -m 755 asir-port.sh ../../bin
1.8 takayama 24: -install -m 755 asir-install.sh ../../bin
1.7 takayama 25: if [ -f ./for_knoppix ]; then make install-for-knoppix ; make gentar-for-knoppix ; echo "do make copy-for-knoppix by hand" ; fi
1.1 takayama 26:
1.2 takayama 27: # Remove files under FLL.
1.1 takayama 28: install-for-knoppix:
1.5 takayama 29: rm -f ../../bin/asir
1.2 takayama 30: ln -s ${KNOPPIX_HOME}/.asir-tmp/asir ../../bin/asir
31: for i in ${LIBS} ; do \
32: (cd ${OpenXM_HOME_}/lib/asir ; rm -f $$i ; ln -s ${KNOPPIX_HOME}/.asir-tmp/$$i .) ; \
33: done
1.11 takayama 34: echo -n ${VERSION} >${OpenXM_HOME}/lib/version.txt
1.2 takayama 35:
36: #The environmental variable OpenXM_HOME must be set for uninstall-for-knoppix
37: # Recover files under FLL.
38: uninstall-for-knoppix:
39: rm -f ../../bin/asir
1.11 takayama 40: (cd ../../bin ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
1.2 takayama 41: for i in ${LIBS} ; do \
1.11 takayama 42: (cd ${OpenXM_HOME}/lib/asir ; rm -f $$i ; cp ../../../OpenXM_contrib2/asir2000/lib/$$i .) ; \
1.2 takayama 43: done
44:
1.11 takayama 45: # Generating asir-Linux-...
46: # and asirlib-Linux-....tar.gz under work
47: # Copy md5 checksum files distinfo-*.md5 under OpenXM/lib/asir
1.2 takayama 48: gentar-for-knoppix:
49: -mkdir work
50: (cd work ; rm -rf *)
1.3 takayama 51: (cd work ; cp ../${OpenXM_HOME_}/../OpenXM_contrib2/asir2000/asir . )
1.2 takayama 52: (cd work ; strip asir ; gzip asir )
53: (cd work ; for i in ${LIBS} ; do \
1.3 takayama 54: cp ../${OpenXM_HOME_}/../OpenXM_contrib2/asir2000/lib/$$i . ; \
1.2 takayama 55: done )
1.11 takayama 56: (cd work ; mv asir.gz "asir-${OS}-${VERSION}.gz")
57: (cd work ; ${MD5} "asir-${OS}-${VERSION}.gz" | awk '{print $$1}' >distinfo-asir.md5)
1.2 takayama 58: (cd work ; tar czf asirlib.tar.gz ${LIBS})
59: (cd work ; for i in ${LIBS} ; do rm -f $$i ; done )
1.11 takayama 60: (cd work ; mv asirlib.tar.gz "asirlib-${OS}-${VERSION}.tar.gz")
61: (cd work ; ${MD5} "asirlib-${OS}-${VERSION}.tar.gz" | awk '{print $$1}' >distinfo-asirlib.md5)
62: (cd work ; cp distinfo-asir.md5 distinfo-asirlib.md5 ../${OpenXM_HOME}/lib/asir)
1.2 takayama 63:
64: copy-for-knoppix:
65: if [ ! -d work ]; then make gentar-for-knoppix ; fi
1.11 takayama 66: (cd work ; ${RSYNC} "asir-${OS}-${VERSION}.gz" "asirlib-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
1.2 takayama 67:
68: clean:
1.3 takayama 69: rm -rf for_knoppix work
1.5 takayama 70:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>