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

Diff for /OpenXM/src/tigers/Makefile between version 1.1 and 1.4

version 1.1, 2000/01/07 22:53:42 version 1.4, 2004/12/14 18:31:46
Line 1 
Line 1 
 # $OpenXM$  # $OpenXM: OpenXM/src/tigers/Makefile,v 1.3 2000/01/31 05:52:07 noro Exp $
   OpenXM_HOME=../..
   PREFIX=${OpenXM_HOME}
   DISTDIR=${OpenXM_HOME}/../OpenXM_dist
   RM = /bin/rm
   RANLIB=ranlib
   INSTALL_PROGRAM=install -c -s
   DISTNAME=TiGERS_0.9
   PATCH_FILE=tigers.patch
   MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
   DIST_SUFFIX=.taz
   DISTFILES=${DISTNAME}${DIST_SUFFIX}
   
 TIGERS = ../../../OpenXM_contrib/TiGERS_0.9  all: build
 CURDIR = ../../OpenXM/src/tigers  
 BINDIR = ../../bin  
   
 all: patch  fetch:
         @if [ ! -f ./.make_done ]; then \          -mkdir work
                 (cd $(TIGERS) ; make all) \          @if [ ! -f work/.fetch_done ]; then \
         fi                  ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
         @touch ./.make_done          fi
           @touch work/.fetch_done
   
 install: all  extract: fetch
         install -c -s $(TIGERS)/tigers $(BINDIR)/tigers          @if [ ! -f work/.extract_done ]; then \
               cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
           fi
           @touch work/.extract_done
   
 clean: patch-clean  patch: extract
         (cd $(TIGERS) ; rm -f *.o tigers)          @if [ ! -f work/.patch_done ]; then \
         @rm -f ./.make_done              if [ -f "${PATCH_FILE}" ]; then \
                   cat ${PATCH_FILE} | (cd work/${DISTNAME} ; patch -p1 ) ; \
               fi \
           fi
           @touch work/.patch_done
   
 patch:  build: patch
         @if [ ! -f ./.patch_done ]; then \          @if [ ! -f work/.build_done ]; then \
                 (cd $(TIGERS) ; patch < $(CURDIR)/tigers.patch) \                  (cd work/${DISTNAME}; ${MAKE} all) ; \
         fi          fi
         @touch ./.patch_done          @touch work/.build_done
   
 patch-clean:  install: build
         @if [ -f ./.patch_done ]; then \          -mkdir ${PREFIX}/bin
                 (cd $(TIGERS) ; patch -R < $(CURDIR)/tigers.patch) \          @if [ ! -f work/.install_done ]; then \
                   bindir=$$(cd ${PREFIX}/bin; pwd); \
                   (cd work/${DISTNAME}; ${INSTALL_PROGRAM} tigers $${bindir}); \
         fi          fi
         @rm -f ./.patch_done          @touch work/.install_done
   
   clean:
           -${RM} -rf work
   
   distclean: clean

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

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