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

Annotation of OpenXM/src/pcc/Makefile, Revision 1.5

1.5     ! ohara       1: # $OpenXM: OpenXM/src/pcc/Makefile,v 1.4 2015/02/21 06:20:36 ohara Exp $
1.1       ohara       2: OpenXM_HOME=../..
                      3: PREFIX=${OpenXM_HOME}
                      4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
                      5: RM = /bin/rm
1.4       ohara       6: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.5     ! ohara       7: DISTNAME=pcc-20210323
1.1       ohara       8: DISTFILES=${DISTNAME}.tgz
                      9: WRKSRC=work/${DISTNAME}
1.3       ohara      10: BUILDDIR=${WRKSRC}/cpp
1.1       ohara      11: PATCHFILES = pcc.diff
                     12:
                     13: all : build
                     14:
                     15: fetch:
                     16:        -mkdir work
                     17:        @if [ ! -f work/.fetch_done ]; then \
                     18:                ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
                     19:        fi
                     20:        @touch work/.fetch_done
                     21:
                     22: extract: fetch
                     23:        @if [ ! -f work/.extract_done ]; then \
                     24:            cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
                     25:        fi
                     26:        @touch work/.extract_done
                     27:
                     28: patch: extract
                     29:        @if [ ! -f work/.patch_done ]; then \
                     30:         for i in ${PATCHFILES} "" ; do \
                     31:             if [ -f "$$i" ]; then \
                     32:                    cat $$i | (cd ${WRKSRC}; patch -p0) ; \
                     33:             fi ; \
                     34:         done ; \
1.3       ohara      35:                (cd work/${DISTNAME}; mv -f cc/cpp cpp; rm -rf cc); \
1.1       ohara      36:        fi
                     37:        @touch work/.patch_done
                     38:
                     39: configure: patch
                     40:        @if [ ! -f work/.configure_done ]; then \
                     41:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.3       ohara      42:                (cd ${WRKSRC} ; ./configure --prefix="$$prefix" --libexecdir="$$prefix"/bin ) ; \
1.1       ohara      43:        fi
                     44:        @touch work/.configure_done
                     45:
                     46: build : configure
                     47:        @if [ ! -f work/.build_done ]; then \
1.3       ohara      48:                (cd ${BUILDDIR} ; ${MAKE}) ; \
1.1       ohara      49:        fi
                     50:        @touch work/.build_done
                     51:
                     52: install: build
                     53:        -mkdir ${PREFIX}/bin ${PREFIX}/lib
                     54:        @if [ ! -f work/.install_done ]; then \
                     55:                (cd ${BUILDDIR} ; ${MAKE} install) ; \
                     56:        fi
                     57:        @touch work/.install_done
                     58:
                     59: clean:
                     60:        -${RM} -rf work
                     61:
                     62: distclean: clean

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