[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / gmp

Annotation of OpenXM/src/gmp/Makefile, Revision 1.9

1.9     ! takayama    1: # $OpenXM: OpenXM/src/gmp/Makefile,v 1.8 2004/03/25 03:17:09 ohara Exp $
1.1       takayama    2: OpenXM_HOME=../..
1.7       takayama    3: PREFIX=${OpenXM_HOME}
                      4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
                      5: RM = /bin/rm -rf
1.8       ohara       6: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.7       takayama    7: DISTFILES=gmp-4.1.2.tar.gz
                      8: GMP=gmp-4.1.2
                      9:
                     10: all : build
                     11:
                     12: fetch:
1.8       ohara      13:        @if [ ! -f .fetch_done ]; then \
                     14:                ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
1.7       takayama   15:        fi
                     16:        @touch .fetch_done
                     17:
1.8       ohara      18: extract: fetch
                     19:        -mkdir work
                     20:        @if [ ! -f .extract_done ]; then \
                     21:            cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
1.7       takayama   22:        fi
1.8       ohara      23:        @touch .extract_done
                     24:
                     25: patch: extract
1.7       takayama   26:        @touch .patch_done
                     27:
1.9     ! takayama   28: configure: patch
        !            29:        @if [ ! -f .configure_done ]; then \
        !            30:                (cd work/${GMP} ; ./configure --prefix `cd ../..; cd ${OpenXM_HOME}; pwd`) ; \
        !            31:        fi
        !            32:        @touch .configure_done
        !            33:
        !            34: build : configure
        !            35:        @if [ ! -f .build_done ]; then \
        !            36:                (cd work/${GMP} ; ${MAKE}) ; \
1.7       takayama   37:        fi
                     38:        @touch .build_done
                     39:
1.8       ohara      40: install: build
                     41:        -mkdir ${PREFIX}/bin ${PREFIX}/lib
                     42:        @if [ ! -f .install_done ]; then \
                     43:                (cd work/${GMP} ; ${MAKE} install) ; \
                     44:                for i in config.h gmp-impl.h gmp-mparam.h; do \
                     45:                        cp work/${GMP}/$$i ${OpenXM_HOME}/include ; \
                     46:                done ; \
1.7       takayama   47:        fi
1.8       ohara      48:        @touch .install_done
1.7       takayama   49:
                     50: clean:
1.8       ohara      51:        -$(RM) ./.*_done
                     52:        -$(RM) -rf work
                     53:
                     54: distclean: clean

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