[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / Generic / openxm

Diff for /OpenXM/misc/packages/Generic/openxm/Makefile between version 1.7 and 1.11

version 1.7, 2000/03/10 03:20:26 version 1.11, 2000/03/11 02:01:42
Line 1 
Line 1 
 # $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.6 2000/03/06 09:01:09 takayama Exp $  # $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.10 2000/03/10 14:57:51 takayama Exp $
 # This is a Makefile to generate source and binary distributions of  # This is a Makefile to generate source and binary distributions of
 # the OpenXM package on various plathomes.  # the OpenXM package on various plathomes.
   
   # If you add new directory under OpenXM/lib, edit SHARED_FILES.
   
 ## For committers: prepare cvs-OpenXM under your search path  ## For committers: prepare cvs-OpenXM under your search path
 ## to access to CVS servers.  ## to access to CVS servers.
 RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr/cvs  RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr/cvs
Line 22  RELEASE=
Line 24  RELEASE=
   
 TYPE=`uname -s`-`uname -m`  TYPE=`uname -s`-`uname -m`
   
   OpenXM_HOME=$(HOME)/OpenXM
   TAR_WORK=$(HOME)/tmp
   #TAR_WORK=${OpenXM_HOME}/misc/packages/Generic/openxm/work
   INSTALL_WORK=${OpenXM_HOME}/misc/packages/Generic/openxm/work/openxm-install-dir
   
   ### Variables for the real Makefile
   ### Variables should be set before the first target.
   srcdir = .
   prefix=${PREFIX}
   MAN_DIR=${prefix}/man/man1
   WORK=work/openxm-${VERSION}
   ### End of variables for the real Makefile
   
 ### Common  ### Common
 SHARED_FILES = OpenXM/Copyright OpenXM/doc OpenXM/include OpenXM/man \  SHARED_FILES = OpenXM/Copyright OpenXM/doc OpenXM/include OpenXM/man \
                OpenXM/rc \  
                OpenXM/lib/asir-contrib OpenXM/lib/java-support \                 OpenXM/lib/asir-contrib OpenXM/lib/java-support \
                OpenXM/lib/k097 OpenXM/lib/math OpenXM/lib/pari \                 OpenXM/lib/k097 OpenXM/lib/math OpenXM/lib/pari \
                OpenXM/lib/sm1 OpenXM/lib/asir                 OpenXM/lib/sm1 OpenXM/lib/asir
 BINARY_FILES = OpenXM/bin OpenXM/lib/*.a OpenXM/lib/*.so*  BINARY_FILES = OpenXM/bin OpenXM/lib/*.a OpenXM/lib/*.so* OpenXM/lib/*.a.* \
 OpenXM_BINARIES=gnuplot4ox gnuplot_x11 k0 ox ox_sm1 oxlog oxweave sm1 tigers                 OpenXM/rc
   
   EXECUTABLES=gnuplot4ox gnuplot_x11 k0 ox ox_sm1 oxlog oxweave sm1 tigers ox_math
   
 usage :  usage :
         @echo "Targets are "          @echo "Targets are "
         @echo "  fetch  :   get the sources from the cvs server under work"          @echo "  fetch  :   get the sources from the cvs server under $(WORK)"
         @echo "  tar-ball : generate OpenXM-source.tgz under work"          @echo "  tar-ball : generate OpenXM-source.tgz under $(TAR_WORK)"
         @echo "  tar-ball-01 : generate OpenXM-source-01.tgz under work"          @echo "  tar-ball-01 : generate OpenXM-source-01.tgz under $(TAR_WORK)"
         @echo "  binary-tar-ball : generate OpenXM-binary-OS-CPU.tgz under work"          @echo "  binary-tar-ball : generate OpenXM-binary-OS-CPU.tgz under $(TAR_WORK)"
           @echo "  shared-tar-ball : generate OpenXM-shared.tgz under $(TAR_WORK)"
           @echo "  clean-work "
           @echo "  clean-for-make "
         @echo -n "Type is "          @echo -n "Type is "
         @echo $(TYPE)          @echo $(TYPE)
           @echo -n "INSTALL_WORK is "
           @echo  $(INSTALL_WORK)
           @echo -n "TAR_WORK is "
           @echo  $(TAR_WORK)
           @echo " "
   
 ### Start of Makefile  to work in the directory work/openxm-$(VERSION)  ### Start of Makefile  to work in the directory work/openxm-$(VERSION)
 ### It does not work here.  ### It does not work here.
 ### Original version is in misc/packages/FreeBSD/openxm-1.1.2  ### Original version is in misc/packages/FreeBSD/openxm-1.1.2
 ### Absolute path should be used for TAR_WORK  ### Absolute path should be used for TAR_WORK
 TAR_WORK=$(HOME)/tmp  
 #TAR_WORK=`pwd`/work  
 INSTALL_WORK=`pwd`/work/openxm-install-dir  
 srcdir = .  
 prefix=${PREFIX}  
 MAN_DIR=${prefix}/man/man1  
   
 usage-of-real-make:  usage-of-real-make:
         @echo "Targets are all, install, clean, distclean"          @echo "Targets are all, install, clean, distclean"
Line 57  usage-of-real-make:
Line 75  usage-of-real-make:
         @echo "e.g., make install PREFIX=/usr/local"          @echo "e.g., make install PREFIX=/usr/local"
   
 configure :  configure :
         @if [ ! -f .configure_done ] ; then          @if [ ! -f .configure_done ] ; then \
                 (cd $(srcdir)/OpenXM/src ;      make configure ) \                  (cd $(srcdir)/OpenXM/src ;      make configure ) ; \
         fi          fi
         @touch .configure_done          @touch .configure_done
   
 all : configure  all : configure
         @if [ ! -f .all_done ] ; then \          @if [ ! -f .all_done ] ; then \
 #       (cd $(srcdir)/OpenXM/src ;      make ;  make install) ; \                  (cd $(srcdir)/OpenXM/src ;      make binary-dist) ; \
         (cd $(srcdir)/OpenXM/src ;      make binary-dist) ; \  
         fi          fi
         @touch .all_done          @touch .all_done
   
   all-ideal : configure
           @if [ ! -f .all_done ] ; then \
                   (cd $(srcdir)/OpenXM/src ;      make ;  make install) ; \
           fi
           @touch .all_done
   
 install : install-binary-files install-shared-files  install : install-binary-files install-shared-files
           make install-shell-scripts PREFIX=${prefix}
   
   install-shell-scripts:
 # Install shell scripts to ${prefix}/bin, which is typically /usr/local/bin  # Install shell scripts to ${prefix}/bin, which is typically /usr/local/bin
         (cd ${prefix}/OpenXM/rc ; make ; make install PREFIX=${prefix})          (cd ${prefix}/OpenXM/rc ; make ; make install PREFIX=${prefix})
   
Line 77  install-binary-files:  all
Line 103  install-binary-files:  all
         @echo "install-binary-files with PREFIX= "          @echo "install-binary-files with PREFIX= "
         @echo ${prefix}          @echo ${prefix}
         tar cf - ${BINARY_FILES} | (cd ${prefix} ; tar xf -)          tar cf - ${BINARY_FILES} | (cd ${prefix} ; tar xf -)
         -for i in $(OpenXM_BINARIES); do strip ${prefix}/OpenXM/bin/$$i ; done          (cd ${prefix}/OpenXM/bin ; make clean-for-install)
           -for i in $(EXECUTABLES); do strip ${prefix}/OpenXM/bin/$$i ; done
   
 install-shared-files:  all  install-shared-files:  all
         @echo "install-binary-files with PREFIX= "          @echo "install-binary-files with PREFIX= "
Line 103  clean-installed-openxm:
Line 130  clean-installed-openxm:
   
   
   
 WORK=work/openxm-${VERSION}  
 fetch :  fetch :
         @if [ ! -f ./.fetch_done ]; then \          @if [ ! -f ./.fetch_done ]; then \
                 /bin/rm -rf work ; mkdir work ; mkdir $(WORK)\                  /bin/rm -rf work ; mkdir work ; mkdir ${WORK} ; \
                 ( cd $(WORK) ; $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2) ; \                  ( cd ${WORK} ; $(RCVS) export -rHEAD OpenXM OpenXM_contrib OpenXM_contrib2) ; \
                 cp Makefile $(WORK)/Makefile ; \                  cp Makefile ${WORK}/Makefile ; \
         fi          fi
         @touch ./.fetch_done          @touch ./.fetch_done
   
 tar-ball: fetch  tar-ball: fetch
         (cd $(WORK)/OpenXM/src ; make generate-source-distribution)          cp Makefile ${WORK}/Makefile
         (cd work ; tar czvf $(TAR_WORK)/openxm-${VERSION}.tar.gz openxm-${VERSION})          (cd ${WORK}/OpenXM/src ; make generate-source-distribution)
           (cd work ; tar czvf ${TAR_WORK}/openxm-${VERSION}.tar.gz openxm-${VERSION})
   
 tar-ball-01: fetch  tar-ball-01: fetch
         @if [ ! -f ./.tar-ball-01_done ]; then \          @if [ ! -f ./.tar-ball-01_done ]; then \
                 (cd $(WORK)/OpenXM/src ; make generate-source-distribution) ; \                  cp Makefile ${WORK}/Makefile  ; \
                 (cd work ; tar czvf $(TAR_WORK)/openxm01-${VERSION}.tar.gz openxm-${VERSION}/OpenXM openxm-${VERSION}/OpenXM_contrib ) ; \                  (cd ${WORK}/OpenXM/src ; make generate-source-distribution) ; \
                   (cd work ; tar czvf ${TAR_WORK}/openxm01-${VERSION}.tar.gz openxm-${VERSION}/OpenXM openxm-${VERSION}/OpenXM_contrib ) ; \
         fi          fi
         @touch ./.tar-ball-01_done          @touch ./.tar-ball-01_done
   
 binary-tar-ball : tar-ball-01  binary-tar-ball : tar-ball-01
         rm -rf $(INSTALL_WORK)          cp Makefile ${WORK}/Makefile
         mkdir $(INSTALL_WORK) $(INSTALL_WORK)/bin $(INSTALL_WORK)/man          rm -rf ${INSTALL_WORK}
         mkdir $(INSTALL_WORK)/man/man1          mkdir ${INSTALL_WORK} ${INSTALL_WORK}/bin ${INSTALL_WORK}/man
         (cd $(WORK) ; make install-binary-files PREFIX=$(INSTALL_WORK))          mkdir ${INSTALL_WORK}/man/man1
         (cd $(WORK) ; tar czf $(TAR_WORK)/OpenXM-binary-$(TYPE)$(RELEASE).tgz ${BINARY_FILES})          (cd ${WORK} ; make install-binary-files PREFIX=${INSTALL_WORK})
           (cd ${INSTALL_WORK} ; tar czf ${TAR_WORK}/OpenXM-binary-$(TYPE)$(RELEASE).tgz ${BINARY_FILES})
   
 share-tar-ball : tar-ball-01  shared-tar-ball : tar-ball-01
         rm -rf $(INSTALL_WORK)          cp Makefile ${WORK}/Makefile
         mkdir $(INSTALL_WORK) $(INSTALL_WORK)/bin $(INSTALL_WORK)/man          rm -rf ${INSTALL_WORK}
         mkdir $(INSTALL_WORK)/man/man1          mkdir ${INSTALL_WORK} ${INSTALL_WORK}/bin ${INSTALL_WORK}/man
         (cd $(WORK) ; make install-shared-files PREFIX=$(INSTALL_WORK))          mkdir ${INSTALL_WORK}/man/man1
         (cd $(WORK) ; tar czf $(TAR_WORK)/OpenXM-common-$(TYPE)$(RELEASE).tgz ${SHARED_FILES})          (cd ${WORK} ; make install-shared-files PREFIX=${INSTALL_WORK})
           (cd ${INSTALL_WORK} ; tar czf ${TAR_WORK}/OpenXM-shared-$(TYPE)$(RELEASE).tgz ${SHARED_FILES})
   
   
 clean :  clean-work :
         /bin/rm -rf .*_done *~          /bin/rm -rf .*_done *~
         /bin/rm -rf work          /bin/rm -rf work work-fake
   
   clean-for-make:
           (cd ${WORK} ; make distclean)
           rm -f .configure_done .all_done

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.11

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