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

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

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

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