version 1.10, 2006/02/06 04:51:51 |
version 1.35, 2015/02/25 05:25:13 |
|
|
# $OpenXM: OpenXM/src/asir-port/Makefile,v 1.9 2005/02/03 05:17:33 takayama Exp $ |
# $OpenXM: OpenXM/src/asir-port/Makefile,v 1.34 2014/02/25 04:29:55 takayama Exp $ |
# touch for_knoppix ; make install |
# touch for_knoppix ; make install |
# to generate a distribution for knoppix. |
# to generate a distribution for knoppix. |
|
#### Do not add extra spaces after the VERSION. |
|
VERSION=1.3.1-14 |
|
|
KNOPPIX_HOME=/home/knoppix |
KNOPPIX_HOME=/home/knoppix |
LIBS=alpi bfct bgk const cyclic defs.h dmul fctrdata fctrtest fff \ |
LIBS=alpi bfct bgk const cyclic defs.h dmul fctrdata fctrtest fff \ |
gr ifplot katsura mat nf num primdec ratint robot solve sp \ |
gr ifplot katsura mat nf num primdec ratint robot solve sp \ |
sturm xm |
sturm xm |
# bug: md5sum is called md5 in FreeBSD. |
# bug: md5sum is called md5 in FreeBSD. |
MD5=md5sum |
MD5=md5sum |
OS=`uname -s` |
OS=`dpkg --print-architecture` |
OpenXM_HOME_=../.. |
OpenXM_HOME_=../.. |
RSYNC=rsync -avz -e ssh |
RSYNC=rsync -avz -e ssh |
FTP_DIR=/home/ftp/pub/asir/knoppix-all/knoppix-2006-02 |
#FTP_DIR=/home/ftp/pub/OpenXM/head/knoppix |
|
FTP_DIR=/home/web/pub/OpenXM/head/knoppix |
|
OpenXM_HOME=../../../OpenXM |
|
|
all: |
all: |
install: all |
install: all |
Line 26 install-for-knoppix: |
|
Line 31 install-for-knoppix: |
|
for i in ${LIBS} ; do \ |
for i in ${LIBS} ; do \ |
(cd ${OpenXM_HOME_}/lib/asir ; rm -f $$i ; ln -s ${KNOPPIX_HOME}/.asir-tmp/$$i .) ; \ |
(cd ${OpenXM_HOME_}/lib/asir ; rm -f $$i ; ln -s ${KNOPPIX_HOME}/.asir-tmp/$$i .) ; \ |
done |
done |
|
echo -n ${VERSION} >${OpenXM_HOME}/lib/version.txt |
|
|
#The environmental variable OpenXM_HOME must be set for uninstall-for-knoppix |
#The environmental variable OpenXM_HOME must be set for uninstall-for-knoppix |
# Recover files under FLL. |
# Recover files under FLL. |
uninstall-for-knoppix: |
uninstall-for-knoppix: |
rm -f ../../bin/asir |
rm -f ../../bin/asir |
ln -s ${OpenXM_HOME}/../OpenXM_contrib2/asir2000/asir ${OpenXM_HOME}/bin/asir |
(cd ../../bin ; ln -s ../../OpenXM_contrib2/asir2000/asir .) |
for i in ${LIBS} ; do \ |
for i in ${LIBS} ; do \ |
(cd ${OpenXM_HOME}/lib/asir ; rm -f $$i ; cp ${OpenXM_HOME}/../OpenXM_contrib2/asir2000/lib/$$i .) ; \ |
(cd ${OpenXM_HOME}/lib/asir ; rm -f $$i ; cp ../../../OpenXM_contrib2/asir2000/lib/$$i .) ; \ |
done |
done |
|
|
# Generating asir-Linux-85.... |
# Generating asir-Linux-... |
# and asirlib-Linux-c3....tar.gz under work |
# and asirlib-Linux-....tar.gz under work |
# Copy md5 checksum files distinfo-? under OpenXM/lib/asir |
# Copy md5 checksum files distinfo-*.md5 under OpenXM/lib/asir |
gentar-for-knoppix: |
gentar-for-knoppix: |
-mkdir work |
-mkdir work |
(cd work ; rm -rf *) |
(cd work ; rm -rf *) |
Line 47 gentar-for-knoppix: |
|
Line 53 gentar-for-knoppix: |
|
(cd work ; for i in ${LIBS} ; do \ |
(cd work ; for i in ${LIBS} ; do \ |
cp ../${OpenXM_HOME_}/../OpenXM_contrib2/asir2000/lib/$$i . ; \ |
cp ../${OpenXM_HOME_}/../OpenXM_contrib2/asir2000/lib/$$i . ; \ |
done ) |
done ) |
(cd work ; ${MD5} asir.gz | awk '{print $$1}' >distinfo-asir) |
(cd work ; mv asir.gz "asir-${OS}-${VERSION}.gz") |
(cd work ; mv asir.gz "asir-${OS}-`cat distinfo-asir`.gz") |
(cd work ; ${MD5} "asir-${OS}-${VERSION}.gz" | awk '{print $$1}' >distinfo-asir.md5) |
(cd work ; tar czf asirlib.tar.gz ${LIBS}) |
(cd work ; tar czf asirlib.tar.gz ${LIBS}) |
(cd work ; for i in ${LIBS} ; do rm -f $$i ; done ) |
(cd work ; for i in ${LIBS} ; do rm -f $$i ; done ) |
(cd work ; ${MD5} asirlib.tar.gz | awk '{print $$1}' >distinfo-lib) |
(cd work ; mv asirlib.tar.gz "asirlib-${OS}-${VERSION}.tar.gz") |
(cd work ; mv asirlib.tar.gz "asirlib-${OS}-`cat distinfo-lib`.tar.gz") |
(cd work ; ${MD5} "asirlib-${OS}-${VERSION}.tar.gz" | awk '{print $$1}' >distinfo-asirlib.md5) |
(cd work ; cp distinfo-asir distinfo-lib ../${OpenXM_HOME_}/lib/asir) |
(cd work ; cp distinfo-asir.md5 distinfo-asirlib.md5 ../${OpenXM_HOME}/lib/asir) |
|
|
copy-for-knoppix: |
copy-for-knoppix: |
if [ ! -d work ]; then make gentar-for-knoppix ; fi |
if [ ! -d work ]; then make gentar-for-knoppix ; fi |
(cd work ; ${RSYNC} "asir-${OS}-`cat distinfo-asir`.gz" "asirlib-${OS}-`cat distinfo-lib`.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR}) |
(cd work ; ${RSYNC} "asir-${OS}-${VERSION}.gz" "asirlib-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR}) |
|
|
clean: |
clean: |
rm -rf for_knoppix work |
rm -rf for_knoppix work |
|
|
clean-for-knoppix: |
|
if [ -f ./for_knoppix ]; then \ |
|
rm -f ../../lib/*.a ../../lib/libpari* ; \ |
|
rm -rf ../../lib/NTL ; \ |
|
fi |
|