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

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

version 1.3, 2004/03/02 14:58:23 version 1.4, 2004/12/15 11:58:31
Line 1 
Line 1 
 # $OpenXM: OpenXM/src/texmacs/texmacs/Makefile,v 1.2 2004/03/01 03:10:27 takayama Exp $  # $OpenXM: OpenXM/src/texmacs/texmacs/Makefile,v 1.3 2004/03/02 14:58:23 ohara Exp $
 OpenXM_HOME=../../..  OpenXM_HOME=../../..
 PREFIX=${OpenXM_HOME}  PREFIX=${OpenXM_HOME}
 DISTDIR=${OpenXM_HOME}/../OpenXM_dist  DISTDIR=${OpenXM_HOME}/../OpenXM_dist
 RM = /bin/rm -rf  RM = /bin/rm
 MASTER_CITES=ftp.math.kobe-u.ac.jp  MASTER_CITES=ftp.math.kobe-u.ac.jp
 # MASTER_CITES2 =  # MASTER_CITES2 =
 DISTFILES=TeXmacs-1.0.3.3-src.tar.gz  DISTNAME=TeXmacs-1.0.4.5-src
 SRCDIR=TeXmacs-1.0.3.3-src  DISTFILES=${DISTNAME}.tar.gz
   WRKSRC=work/${DISTNAME}
   PATCH_FILES=TeXmacs.diff
 # Use gnu make on freebsd.  On Debian type in   make  MAKE=make  # Use gnu make on freebsd.  On Debian type in   make  MAKE=make
 MAKE=gmake  MAKE=gmake
 guile=`which guile-config`  guile=$$(which guile-config)
   
 all : build  all: build
 install : post-install  
   
 fetch:  check-guile  fetch:  check-guile
         @if test ! -f .fetch_done ; \          -mkdir work
         then \          @if [ ! -f work/.fetch_done ]; then \
                 ${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/${DISTFILES} ${DISTDIR}; \                  ${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/${DISTFILES} ${DISTDIR}; \
         fi          fi
         @touch .fetch_done          @touch work/.fetch_done
   
 patch : fetch  extract: fetch
         @if test ! -f .patch_done ; \          @if [ ! -f work/.extract_done ]; then \
         then \              cat ${DISTDIR}/${DISTFILES} | (cd work; tar xzvf -) ; \
           $(RM) work ; \  
           mkdir work ; \  
           (cd work ; tar xzvf ../${DISTDIR}/${DISTFILES} ) ; \  
         fi          fi
         @touch .patch_done          @touch work/.extract_done
 #         (cd work; patch -c -p0 <../patch-aa ; patch -c -p0 <../patch-bb ; patch -c -p0 <../patch-cc) ; \  
   
 build : patch  patch: extract
         @if test ! -f .build_done ; \          @if [ ! -f work/.patch_done ]; then \
         then \                  for i in ${PATCH_FILES} ; do \
                 (cd work/${SRCDIR} ; ./configure --prefix `cd ../../../../../../OpenXM; pwd` --with-iconv`i=/usr/local; if [ -f $$i/include/iconv.h ]; then echo =$$i; fi` ; ${MAKE} ) ; \                          cat $$i | (cd ${WRKSRC}; patch -p1) ; \
                   done ; \
           fi
           @touch work/.patch_done
   
   configure: patch
           @if [ ! -f work/.configure_done ]; then \
                   prefix=$$(cd ../../../../OpenXM; pwd) ;\
                   with_iconv=--with-iconv$$(i=/usr/local; if [ -f $$i/include/iconv.h ]; then echo =$$i; fi) ;\
                   (cd ${WRKSRC}; ./configure --prefix=$${prefix} $${with_iconv}) ; \
         fi          fi
         @touch .build_done          @touch work/.configure_done
   
 post-install: build  build: configure
         @if test ! -f .post-install_done ; \          @if [ ! -f work/.build_done ]; then \
         then \                  (cd ${WRKSRC}; ${MAKE}) ; \
                 (cd work/${SRCDIR} ; ${MAKE} install) ; \  
         fi          fi
         @touch .post-install_done          @touch work/.build_done
   
 clean: clean-usr-local  install: build
         $(RM)  .*_done          @if [ ! -f work/.install_done ]; then \
         -(cd work/${SRCDIR} ; ${MAKE} clean)                  (cd ${WRKSRC}; ${MAKE} install) ; \
 distclean:          fi
         $(RM)  .*_done ./.use_ports          @touch work/.post-install_done
         -(cd work/${SRCDIR} ; ${MAKE} distclean)  
 clean-usr-local:  
         -$(RM) ${OpenXM_HOME}/share/TeXmacs*  
         -$(RM) ${OpenXM_HOME}/bin/texmacs  
   
   clean:
           -${RM} -rf work
   
   distclean: clean
           -${RM} -rf ${OpenXM_HOME}/share/TeXmacs* ${OpenXM_HOME}/bin/texmacs
   
 check-guile:  check-guile:
         @if [ -z ${guile} ] ; \          @if [ ! -x "${guile}" ]; then \
         then \                  echo "Error ----------------------------------------------------------" ; \
                 echo "Error ---------------------------------------------------------- " ; \  
                 echo "    Please install guile/scheme before installing texmacs." ; \                  echo "    Please install guile/scheme before installing texmacs." ; \
                 echo "    cf. ftp://ftp.gnu.org/pub/gnu/guile " ; \                  echo "    cf. ftp://ftp.gnu.org/pub/gnu/guile " ; \
                 echo "Hint: guile-config, portinstall , whereis , apt-get ,lib/libguile, ldconfig, ... " ; \                  echo "Hint: guile-config, portinstall, whereis, apt-get, lib/libguile, ldconfig, ..." ; \
                 echo "      http://www.texmacs.org/tmweb/download/requirements.en.html" ; \                  echo "      http://www.texmacs.org/tmweb/download/requirements.en.html" ; \
                 exit ; \  
         fi          fi
   
 ## Note on debian.  ## Note on debian.
 ##  apt-get install libguile-dev (buile-1.6 ...?)  
   
   ##  apt-get install libguile-dev (buile-1.6 ...?)

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

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