version 1.14, 2000/03/13 00:52:21 |
version 1.17, 2000/08/29 04:08:52 |
|
|
# $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.13 2000/03/11 06:22:34 takayama Exp $ |
# $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.16 2000/03/16 10:07:04 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. |
|
|
|
|
## 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 |
### cvs-OpenXM is the following shell script |
### cvs-OpenXM is the following shell script in my case. |
## #!/bin/sh |
## #!/bin/sh |
## CVS_RSH=ssh |
## CVS_RSH=ssh |
## export CVS_RSH |
## export CVS_RSH |
Line 18 RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr |
|
Line 18 RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr |
|
|
|
## Configurations. |
## Configurations. |
## OpenXM Version Number. |
## OpenXM Version Number. |
VERSION=1.1.2 |
VERSION=1.1.3 |
TAG=HEAD |
TAG=HEAD |
|
FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION} |
|
|
RELEASE= |
RELEASE= |
## If you like to have a release name as a part of tar ball, then uncomment |
## If you like to have a release name as a part of tar ball, then uncomment |
Line 48 SHARED_FILES = OpenXM/Copyright OpenXM/doc OpenXM/incl |
|
Line 49 SHARED_FILES = OpenXM/Copyright OpenXM/doc OpenXM/incl |
|
OpenXM/lib/sm1 OpenXM/lib/asir |
OpenXM/lib/sm1 OpenXM/lib/asir |
BINARY_FILES = OpenXM/bin OpenXM/lib/*.a OpenXM/lib/*.so* OpenXM/lib/*.a.* \ |
BINARY_FILES = OpenXM/bin OpenXM/lib/*.a OpenXM/lib/*.so* OpenXM/lib/*.a.* \ |
OpenXM/rc |
OpenXM/rc |
|
MAN_PAGES = openxm.1 sm1.1 |
|
|
EXECUTABLES=gnuplot4ox gnuplot_x11 k0 ox ox_sm1 oxlog oxweave sm1 tigers ox_math |
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 tar balls for distribution:" |
@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-${VERSION}.tar.gz under $(TAR_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 " 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 " binary-tar-ball : generate OpenXM-binary-OS-CPU.tgz under $(TAR_WORK)" |
@echo " shared-tar-ball : generate OpenXM-shared.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-work " |
@echo " clean-for-make " |
@echo " clean-for-make " |
@echo -n "Type is " |
@echo -n "Type is " |
|
|
@echo $(INSTALL_WORK) |
@echo $(INSTALL_WORK) |
@echo -n "TAR_WORK is " |
@echo -n "TAR_WORK is " |
@echo $(TAR_WORK) |
@echo $(TAR_WORK) |
|
@echo -n "FTP_AREA is " |
|
@echo $(FTP_AREA) |
@echo " " |
@echo " " |
|
|
### Start of Makefile to work in the directory work/openxm-$(VERSION) |
### Start of Makefile to work in the directory work/openxm-$(VERSION) |
|
|
### Absolute path should be used for TAR_WORK |
### Absolute path should be used for TAR_WORK |
|
|
usage-of-real-make: |
usage-of-real-make: |
@echo "Targets are all, install, clean, distclean" |
@echo "Usage for building OpenXM binaries:" |
|
@echo "Targets are configure, all, install, clean, distclean" |
@echo "You need to specify the PREFIX to install," |
@echo "You need to specify the PREFIX to install," |
@echo "e.g., make install PREFIX=/usr/local" |
@echo "e.g., make install PREFIX=/usr/local" |
|
|
Line 103 install-shell-scripts: |
|
Line 111 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}) |
|
|
|
|
install-binary-files: all |
install-binary-files: all |
@echo "install-binary-files with PREFIX= " |
@echo "install-binary-files with PREFIX= " |
@echo ${prefix} |
@echo ${prefix} |
Line 115 install-shared-files: all |
|
Line 124 install-shared-files: all |
|
@echo ${prefix} |
@echo ${prefix} |
tar cf - ${SHARED_FILES} | (cd ${prefix} ; tar xf -) |
tar cf - ${SHARED_FILES} | (cd ${prefix} ; tar xf -) |
|
|
|
install-man-pages-for-rpm: |
|
-(cd ${prefix}/OpenXM/man/man1 ; cp $(MAN_PAGES) ${PREFIX}/man/man1) |
|
|
install.man : install |
install.man : install |
-cp ${prefix}/OpenXM/man/man1/sm1.1 ${prefix}/OpenXM/man/man1/openxm.1 ${MAN_DIR} |
-(cd ${prefix}/OpenXM/man/man1 ; cp ${MAN_PAGES} ${MAN_DIR}) |
-gzip ${MAN_DIR}/sm1.1 ${MAN_DIR}/openxm.1 |
-gzip ${MAN_DIR}/sm1.1 ${MAN_DIR}/openxm.1 |
|
|
clean : |
clean : |
cd $(srcdir)/OpenXM/src ; make clean |
-(cd $(srcdir)/OpenXM/src ; make clean) |
rm -f .*_done* |
rm -f .*_done* |
|
|
distclean : |
distclean : |
cd $(srcdir)/OpenXM/src ; make distclean |
-(cd $(srcdir)/OpenXM/src ; make distclean) |
rm -f .*_done* |
rm -f .*_done* |
|
|
clean-installed-openxm: |
clean-installed-openxm: |
|
|
fi |
fi |
@touch ./.fetch_done |
@touch ./.fetch_done |
|
|
tar-ball: fetch |
build-tar-work: |
cp Makefile ${WORK}/Makefile |
@if [ ! -d ${TAR_WORK} ]; then \ |
(cd ${WORK}/OpenXM/src ; make generate-source-distribution) |
mkdir ${TAR_WORK} ; \ |
(cd work ; tar czvf ${TAR_WORK}/openxm-${VERSION}.tar.gz openxm-${VERSION}) |
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 \ |
@if [ ! -f ./.tar-ball-01_done ]; then \ |
cp Makefile ${WORK}/Makefile ; \ |
cp Makefile ${WORK}/Makefile ; \ |
(cd ${WORK}/OpenXM/src ; make generate-source-distribution) ; \ |
(cd ${WORK}/OpenXM/src ; make generate-source-distribution) ; \ |
Line 155 tar-ball-01: fetch |
|
Line 180 tar-ball-01: fetch |
|
fi |
fi |
@touch ./.tar-ball-01_done |
@touch ./.tar-ball-01_done |
|
|
binary-tar-ball : tar-ball-01 |
binary-tar-ball : fetch |
cp Makefile ${WORK}/Makefile |
cp Makefile ${WORK}/Makefile |
rm -rf ${INSTALL_WORK} |
rm -rf ${INSTALL_WORK} |
mkdir ${INSTALL_WORK} ${INSTALL_WORK}/bin ${INSTALL_WORK}/man |
mkdir ${INSTALL_WORK} ${INSTALL_WORK}/bin ${INSTALL_WORK}/man |
Line 163 binary-tar-ball : tar-ball-01 |
|
Line 188 binary-tar-ball : tar-ball-01 |
|
(cd ${WORK} ; make install-binary-files PREFIX=${INSTALL_WORK}) |
(cd ${WORK} ; make install-binary-files PREFIX=${INSTALL_WORK}) |
(cd ${INSTALL_WORK} ; tar czf ${TAR_WORK}/OpenXM-binary-$(TYPE)$(RELEASE).tgz ${BINARY_FILES}) |
(cd ${INSTALL_WORK} ; tar czf ${TAR_WORK}/OpenXM-binary-$(TYPE)$(RELEASE).tgz ${BINARY_FILES}) |
|
|
shared-tar-ball : tar-ball-01 |
shared-tar-ball : fetch |
cp Makefile ${WORK}/Makefile |
cp Makefile ${WORK}/Makefile |
rm -rf ${INSTALL_WORK} |
rm -rf ${INSTALL_WORK} |
mkdir ${INSTALL_WORK} ${INSTALL_WORK}/bin ${INSTALL_WORK}/man |
mkdir ${INSTALL_WORK} ${INSTALL_WORK}/bin ${INSTALL_WORK}/man |
Line 171 shared-tar-ball : tar-ball-01 |
|
Line 196 shared-tar-ball : tar-ball-01 |
|
(cd ${WORK} ; make install-shared-files PREFIX=${INSTALL_WORK}) |
(cd ${WORK} ; make install-shared-files PREFIX=${INSTALL_WORK}) |
(cd ${INSTALL_WORK} ; tar czf ${TAR_WORK}/OpenXM-shared.tgz ${SHARED_FILES}) |
(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 : |
clean-work : |
/bin/rm -rf .*_done *~ |
/bin/rm -rf .*_done *~ |