Annotation of OpenXM/src/asir-port/Makefile, Revision 1.14
1.14 ! takayama 1: # $OpenXM: OpenXM/src/asir-port/Makefile,v 1.13 2006/02/10 01:57:23 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.14 ! takayama 5: VERSION=1.2.3-6
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.11 takayama 16: FTP_DIR=/home/ftp/pub/OpenXM/head/knoppix
17: OpenXM_HOME=../../../OpenXM
1.1 takayama 18:
19: all:
20: install: all
21: @echo "Installing scripts for portaging asir by downloading."
1.2 takayama 22: -install -m 755 asir-port.sh ../../bin
1.8 takayama 23: -install -m 755 asir-install.sh ../../bin
1.7 takayama 24: 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 25:
1.2 takayama 26: # Remove files under FLL.
1.1 takayama 27: install-for-knoppix:
1.5 takayama 28: rm -f ../../bin/asir
1.2 takayama 29: ln -s ${KNOPPIX_HOME}/.asir-tmp/asir ../../bin/asir
30: for i in ${LIBS} ; do \
31: (cd ${OpenXM_HOME_}/lib/asir ; rm -f $$i ; ln -s ${KNOPPIX_HOME}/.asir-tmp/$$i .) ; \
32: done
1.11 takayama 33: echo -n ${VERSION} >${OpenXM_HOME}/lib/version.txt
1.2 takayama 34:
35: #The environmental variable OpenXM_HOME must be set for uninstall-for-knoppix
36: # Recover files under FLL.
37: uninstall-for-knoppix:
38: rm -f ../../bin/asir
1.11 takayama 39: (cd ../../bin ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
1.2 takayama 40: for i in ${LIBS} ; do \
1.11 takayama 41: (cd ${OpenXM_HOME}/lib/asir ; rm -f $$i ; cp ../../../OpenXM_contrib2/asir2000/lib/$$i .) ; \
1.2 takayama 42: done
43:
1.11 takayama 44: # Generating asir-Linux-...
45: # and asirlib-Linux-....tar.gz under work
46: # Copy md5 checksum files distinfo-*.md5 under OpenXM/lib/asir
1.2 takayama 47: gentar-for-knoppix:
48: -mkdir work
49: (cd work ; rm -rf *)
1.3 takayama 50: (cd work ; cp ../${OpenXM_HOME_}/../OpenXM_contrib2/asir2000/asir . )
1.2 takayama 51: (cd work ; strip asir ; gzip asir )
52: (cd work ; for i in ${LIBS} ; do \
1.3 takayama 53: cp ../${OpenXM_HOME_}/../OpenXM_contrib2/asir2000/lib/$$i . ; \
1.2 takayama 54: done )
1.11 takayama 55: (cd work ; mv asir.gz "asir-${OS}-${VERSION}.gz")
56: (cd work ; ${MD5} "asir-${OS}-${VERSION}.gz" | awk '{print $$1}' >distinfo-asir.md5)
1.2 takayama 57: (cd work ; tar czf asirlib.tar.gz ${LIBS})
58: (cd work ; for i in ${LIBS} ; do rm -f $$i ; done )
1.11 takayama 59: (cd work ; mv asirlib.tar.gz "asirlib-${OS}-${VERSION}.tar.gz")
60: (cd work ; ${MD5} "asirlib-${OS}-${VERSION}.tar.gz" | awk '{print $$1}' >distinfo-asirlib.md5)
61: (cd work ; cp distinfo-asir.md5 distinfo-asirlib.md5 ../${OpenXM_HOME}/lib/asir)
1.2 takayama 62:
63: copy-for-knoppix:
64: if [ ! -d work ]; then make gentar-for-knoppix ; fi
1.11 takayama 65: (cd work ; ${RSYNC} "asir-${OS}-${VERSION}.gz" "asirlib-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
1.2 takayama 66:
67: clean:
1.3 takayama 68: rm -rf for_knoppix work
1.5 takayama 69:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>