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

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

1.8     ! ohara       1: # $OpenXM: OpenXM/src/gmp/Makefile,v 1.7 2004/03/25 01:52:18 takayama 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:
                     28: build : patch
1.8     ! ohara      29:        @if test ! -f .build_done ; then \
        !            30:                (cd work/${GMP} ; ./configure --prefix `cd ../..; cd ${OpenXM_HOME}; pwd`; ${MAKE}) ; \
1.7       takayama   31:        fi
                     32:        @touch .build_done
                     33:
1.8     ! ohara      34: install: build
        !            35:        -mkdir ${PREFIX}/bin ${PREFIX}/lib
        !            36:        @if [ ! -f .install_done ]; then \
        !            37:                (cd work/${GMP} ; ${MAKE} install) ; \
        !            38:                for i in config.h gmp-impl.h gmp-mparam.h; do \
        !            39:                        cp work/${GMP}/$$i ${OpenXM_HOME}/include ; \
        !            40:                done ; \
1.7       takayama   41:        fi
1.8     ! ohara      42:        @touch .install_done
1.7       takayama   43:
                     44: clean:
1.8     ! ohara      45:        -$(RM) ./.*_done
        !            46:        -$(RM) -rf work
        !            47:
        !            48: distclean: clean

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