=================================================================== RCS file: /home/cvs/OpenXM/misc/packages/Generic/openxm/Makefile,v retrieving revision 1.16 retrieving revision 1.22 diff -u -p -r1.16 -r1.22 --- OpenXM/misc/packages/Generic/openxm/Makefile 2000/03/16 10:07:04 1.16 +++ OpenXM/misc/packages/Generic/openxm/Makefile 2004/02/22 09:17:11 1.22 @@ -1,6 +1,7 @@ -# $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.15 2000/03/13 02:41:37 takayama Exp $ -# This is a Makefile to generate source and binary distributions of -# the OpenXM package on various plathomes. +# $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.21 2003/02/22 06:32:02 takayama Exp $ +# The FIRST part is a Makefile FOR COMMITTERS: it is used +# to generate source and binary distributions of +# the OpenXM package on various operating systems. # If you add new directory under OpenXM/lib, edit SHARED_FILES. @@ -10,7 +11,7 @@ ## For committers: prepare cvs-OpenXM under your search path ## to access to CVS servers. RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr/cvs -### cvs-OpenXM is the following shell script +### cvs-OpenXM is the following shell script in my case. ## #!/bin/sh ## CVS_RSH=ssh ## export CVS_RSH @@ -18,8 +19,10 @@ RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr ## Configurations. ## OpenXM Version Number. -VERSION=1.1.2 +PREFIX=/usr/local +VERSION=1.2.1 TAG=HEAD +FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION} RELEASE= ## If you like to have a release name as a part of tar ball, then uncomment @@ -52,32 +55,42 @@ MAN_PAGES = openxm.1 sm1.1 EXECUTABLES=gnuplot4ox gnuplot_x11 k0 ox ox_sm1 oxlog oxweave sm1 tigers ox_math -usage : +usage : usage-of-real-make + @echo "--------------------------------------------------" + @echo "Usage for building distributions (for COMMITTERS):" @echo "Targets are " @echo " fetch : get the sources from the cvs server under $(WORK)" @echo " tar-ball : generate openxm-${VERSION}.tar.gz under $(TAR_WORK)" @echo " tar-ball-01 : generate openxm01-${VERSION}.tar.gz under $(TAR_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 " install-tar-to-ftp-area : copy openxm-${VERSION}.tar.gz to ${FTP_AREA}" @echo " clean-work " @echo " clean-for-make " + @echo "--------------------------------------------------" @echo -n "Type is " @echo $(TYPE) @echo -n "INSTALL_WORK is " @echo $(INSTALL_WORK) @echo -n "TAR_WORK is " @echo $(TAR_WORK) + @echo -n "FTP_AREA is " + @echo $(FTP_AREA) @echo " " + @echo "A shell script cvs-OpenXM is necessary (write by yourself)" + @echo "under your search path." +### The SECOND part is a Makefile to build binaries from source. +### It only calls the Makefile at OpenXM/src. ### Start of Makefile to work in the directory work/openxm-$(VERSION) -### It does not work here. ### Original version is in misc/packages/FreeBSD/openxm-1.1.2 ### Absolute path should be used for TAR_WORK usage-of-real-make: - @echo "Targets are all, install, clean, distclean" - @echo "You need to specify the PREFIX to install," - @echo "e.g., make install PREFIX=/usr/local" + @echo "Usage for building OpenXM binaries (main Makefile is at OpenXM/src):" + @echo "Targets are " + @echo " configure, all, install, clean, distclean" + @echo "You need to specify the PREFIX to install, e.g., make install PREFIX=/usr/local" configure : @if [ ! -f .configure_done ] ; then \ @@ -125,11 +138,11 @@ install.man : install -gzip ${MAN_DIR}/sm1.1 ${MAN_DIR}/openxm.1 clean : - cd $(srcdir)/OpenXM/src ; make clean + -(cd $(srcdir)/OpenXM/src ; make clean) rm -f .*_done* distclean : - cd $(srcdir)/OpenXM/src ; make distclean + -(cd $(srcdir)/OpenXM/src ; make distclean) rm -f .*_done* clean-installed-openxm: @@ -147,12 +160,25 @@ fetch : fi @touch ./.fetch_done -tar-ball: fetch - cp Makefile ${WORK}/Makefile - (cd ${WORK}/OpenXM/src ; make generate-source-distribution) - (cd work ; tar czvf ${TAR_WORK}/openxm-${VERSION}.tar.gz openxm-${VERSION}) +build-tar-work: + @if [ ! -d ${TAR_WORK} ]; then \ + mkdir ${TAR_WORK} ; \ + fi -tar-ball-01: fetch +build-ftp-area: + @if [ ! -d ${FTP_AREA} ]; then \ + mkdir ${FTP_AREA} ; \ + fi + +tar-ball: fetch build-tar-work + @if [ ! -f ./.tar-ball_done ]; then \ + cp Makefile ${WORK}/Makefile ; \ + (cd ${WORK}/OpenXM/src ; make generate-source-distribution) ; \ + (cd work ; tar czvf ${TAR_WORK}/openxm-${VERSION}.tar.gz openxm-${VERSION}) ; \ + fi + touch ./.tar-ball_done + +tar-ball-01: fetch build-tar-work @if [ ! -f ./.tar-ball-01_done ]; then \ cp Makefile ${WORK}/Makefile ; \ (cd ${WORK}/OpenXM/src ; make generate-source-distribution) ; \ @@ -176,6 +202,8 @@ shared-tar-ball : fetch (cd ${WORK} ; make install-shared-files PREFIX=${INSTALL_WORK}) (cd ${INSTALL_WORK} ; tar czf ${TAR_WORK}/OpenXM-shared.tgz ${SHARED_FILES}) +install-tar-to-ftp-area: build-ftp-area tar-ball + cp ${TAR_WORK}/openxm-${VERSION}.tar.gz ${FTP_AREA} clean-work : /bin/rm -rf .*_done *~