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

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

version 1.3, 2000/01/31 05:52:07 version 1.4, 2004/12/14 18:31:46
Line 1 
Line 1 
 # $OpenXM: OpenXM/src/tigers/Makefile,v 1.2 2000/01/08 18:43:02 maekawa Exp $  # $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
         if test `uname` = "OSF1" ; then \          @if [ ! -f work/.extract_done ]; then \
                 installbsd -c -s $(TIGERS)/tigers $(BINDIR)/tigers ; \              cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
         else \          fi
                 install -c -s $(TIGERS)/tigers $(BINDIR)/tigers ; \          @touch work/.extract_done
         fi  
   
 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
   
 distclean:  build: patch
         rm -f $(BINDIR)/tigers          @if [ ! -f work/.build_done ]; then \
                   (cd work/${DISTNAME}; ${MAKE} all) ; \
 patch:  
         @if [ ! -f ./.patch_done ]; then \  
                 (cd $(TIGERS) ; patch < $(CURDIR)/tigers.patch) \  
         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.3  
changed lines
  Added in v.1.4

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