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

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

1.5     ! ohara       1: # $OpenXM: OpenXM/src/tigers/Makefile,v 1.4 2004/12/14 18:31:46 ohara Exp $
1.4       ohara       2: OpenXM_HOME=../..
                      3: PREFIX=${OpenXM_HOME}
                      4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
                      5: RM = /bin/rm
                      6: RANLIB=ranlib
                      7: INSTALL_PROGRAM=install -c -s
                      8: DISTNAME=TiGERS_0.9
                      9: PATCH_FILE=tigers.patch
                     10: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
                     11: DIST_SUFFIX=.taz
                     12: DISTFILES=${DISTNAME}${DIST_SUFFIX}
                     13:
                     14: all: build
                     15:
                     16: fetch:
                     17:        -mkdir work
                     18:        @if [ ! -f work/.fetch_done ]; then \
                     19:                ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
                     20:        fi
                     21:        @touch work/.fetch_done
                     22:
                     23: extract: fetch
                     24:        @if [ ! -f work/.extract_done ]; then \
                     25:            cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
                     26:        fi
                     27:        @touch work/.extract_done
                     28:
                     29: patch: extract
                     30:        @if [ ! -f work/.patch_done ]; then \
                     31:            if [ -f "${PATCH_FILE}" ]; then \
1.5     ! ohara      32:                for i in NOTE.txt README.change memo.txt; do \
        !            33:                    touch work/${DISTNAME}/$$i ; \
        !            34:                done ; \
        !            35:                cat ${PATCH_FILE} | (cd work/${DISTNAME} ; patch -p1 -f) ; \
1.4       ohara      36:            fi \
                     37:        fi
                     38:        @touch work/.patch_done
                     39:
                     40: build: patch
                     41:        @if [ ! -f work/.build_done ]; then \
                     42:                (cd work/${DISTNAME}; ${MAKE} all) ; \
1.1       maekawa    43:        fi
1.4       ohara      44:        @touch work/.build_done
1.1       maekawa    45:
1.4       ohara      46: install: build
                     47:        -mkdir ${PREFIX}/bin
                     48:        @if [ ! -f work/.install_done ]; then \
                     49:                bindir=$$(cd ${PREFIX}/bin; pwd); \
                     50:                (cd work/${DISTNAME}; ${INSTALL_PROGRAM} tigers $${bindir}); \
1.3       noro       51:        fi
1.4       ohara      52:        @touch work/.install_done
1.1       maekawa    53:
1.4       ohara      54: clean:
                     55:        -${RM} -rf work
1.1       maekawa    56:
1.4       ohara      57: distclean: clean

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