[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-port

Annotation of OpenXM/src/asir-port/Makefile, Revision 1.10

1.10    ! takayama    1: # $OpenXM: OpenXM/src/asir-port/Makefile,v 1.9 2005/02/03 05:17:33 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.10    ! takayama   13: FTP_DIR=/home/ftp/pub/asir/knoppix-all/knoppix-2006-02
1.1       takayama   14:
                     15: all:
                     16: install: all
                     17:        @echo "Installing scripts for portaging asir by downloading."
1.2       takayama   18:        -install -m 755 asir-port.sh ../../bin
1.8       takayama   19:        -install -m 755 asir-install.sh ../../bin
1.7       takayama   20:        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   21:
1.2       takayama   22: # Remove files under FLL.
1.1       takayama   23: install-for-knoppix:
1.5       takayama   24:        rm -f ../../bin/asir
1.2       takayama   25:        ln -s ${KNOPPIX_HOME}/.asir-tmp/asir ../../bin/asir
                     26:        for i in ${LIBS} ; do \
                     27:                (cd ${OpenXM_HOME_}/lib/asir ; rm -f $$i ; ln -s ${KNOPPIX_HOME}/.asir-tmp/$$i .) ; \
                     28:        done
                     29:
                     30: #The environmental variable OpenXM_HOME must be set for uninstall-for-knoppix
                     31: # Recover files under FLL.
                     32: uninstall-for-knoppix:
                     33:        rm -f ../../bin/asir
                     34:        ln -s ${OpenXM_HOME}/../OpenXM_contrib2/asir2000/asir ${OpenXM_HOME}/bin/asir
                     35:        for i in ${LIBS} ; do \
                     36:                (cd ${OpenXM_HOME}/lib/asir ; rm -f $$i ; cp ${OpenXM_HOME}/../OpenXM_contrib2/asir2000/lib/$$i .) ; \
                     37:        done
                     38:
                     39: # Generating asir-Linux-85....
                     40: #      and   asirlib-Linux-c3....tar.gz  under work
                     41: # Copy md5 checksum files distinfo-? under OpenXM/lib/asir
                     42: gentar-for-knoppix:
                     43:        -mkdir work
                     44:        (cd work ; rm -rf *)
1.3       takayama   45:        (cd work ; cp ../${OpenXM_HOME_}/../OpenXM_contrib2/asir2000/asir . )
1.2       takayama   46:        (cd work ; strip asir ; gzip asir )
                     47:        (cd work ; for i in ${LIBS} ; do \
1.3       takayama   48:                cp ../${OpenXM_HOME_}/../OpenXM_contrib2/asir2000/lib/$$i . ; \
1.2       takayama   49:        done )
                     50:        (cd work ; ${MD5} asir.gz | awk '{print $$1}' >distinfo-asir)
                     51:        (cd work ; mv asir.gz "asir-${OS}-`cat distinfo-asir`.gz")
                     52:        (cd work ; tar czf asirlib.tar.gz ${LIBS})
                     53:        (cd work ; for i in ${LIBS} ; do rm -f $$i ; done )
                     54:        (cd work ; ${MD5} asirlib.tar.gz | awk '{print $$1}' >distinfo-lib)
                     55:        (cd work ; mv asirlib.tar.gz "asirlib-${OS}-`cat distinfo-lib`.tar.gz")
                     56:        (cd work ; cp distinfo-asir distinfo-lib ../${OpenXM_HOME_}/lib/asir)
                     57:
                     58: copy-for-knoppix:
                     59:        if [ ! -d work ]; then make gentar-for-knoppix ; fi
1.9       takayama   60:        (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})
1.2       takayama   61:
                     62: clean:
1.3       takayama   63:        rm -rf for_knoppix work
1.5       takayama   64:
                     65: clean-for-knoppix:
                     66:        if [ -f ./for_knoppix ]; then \
1.6       takayama   67:                rm -f ../../lib/*.a ../../lib/libpari* ; \
1.5       takayama   68:                rm -rf ../../lib/NTL  ; \
                     69:        fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>