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