version 1.17, 2000/08/29 04:08:52 |
version 1.24, 2005/04/15 01:41:13 |
|
|
# $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.16 2000/03/16 10:07:04 takayama Exp $ |
# $OpenXM: OpenXM/misc/packages/Generic/openxm/Makefile,v 1.23 2004/02/23 00:09:30 takayama Exp $ |
# This is a Makefile to generate source and binary distributions of |
# The FIRST part is a Makefile FOR COMMITTERS: it is used |
# the OpenXM package on various plathomes. |
# 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. |
# If you add new directory under OpenXM/lib, edit SHARED_FILES. |
|
|
Line 18 RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr |
|
Line 19 RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/usr |
|
|
|
## Configurations. |
## Configurations. |
## OpenXM Version Number. |
## OpenXM Version Number. |
VERSION=1.1.3 |
PREFIX=/usr/local |
|
VERSION=head |
TAG=HEAD |
TAG=HEAD |
FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION} |
FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION} |
|
|
|
OpenXM_contrib_files=OpenXM_contrib/uuencoded OpenXM_contrib/pari |
|
|
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 |
## the next line. |
## the next line. |
Line 54 MAN_PAGES = openxm.1 sm1.1 |
|
Line 58 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-of-real-make |
usage : usage-of-real-make |
@echo " " |
@echo "--------------------------------------------------" |
@echo "Usage for building tar balls for distribution:" |
@echo "Usage for building distributions (for COMMITTERS):" |
@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)" |
Line 65 usage : usage-of-real-make |
|
Line 69 usage : usage-of-real-make |
|
@echo " install-tar-to-ftp-area : copy openxm-${VERSION}.tar.gz to ${FTP_AREA}" |
@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 "--------------------------------------------------" |
@echo -n "Type is " |
@echo -n "Type is " |
@echo $(TYPE) |
@echo $(TYPE) |
@echo -n "INSTALL_WORK is " |
@echo -n "INSTALL_WORK is " |
Line 74 usage : usage-of-real-make |
|
Line 79 usage : usage-of-real-make |
|
@echo -n "FTP_AREA is " |
@echo -n "FTP_AREA is " |
@echo $(FTP_AREA) |
@echo $(FTP_AREA) |
@echo " " |
@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) |
### 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 |
### 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 |
|
|
usage-of-real-make: |
usage-of-real-make: |
@echo "Usage for building OpenXM binaries:" |
@echo "Usage for building OpenXM binaries (main Makefile is at OpenXM/src):" |
@echo "Targets are configure, all, install, clean, distclean" |
@echo "Targets are " |
@echo "You need to specify the PREFIX to install," |
@echo " configure, all, install, clean, distclean" |
@echo "e.g., make install PREFIX=/usr/local" |
@echo "You need to specify the PREFIX to install, e.g., make install PREFIX=/usr/local" |
|
|
configure : |
configure : |
@if [ ! -f .configure_done ] ; then \ |
@if [ ! -f .configure_done ] ; then \ |
Line 149 clean-installed-openxm: |
|
Line 157 clean-installed-openxm: |
|
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 -r${TAG} OpenXM OpenXM_contrib OpenXM_contrib2) ; \ |
( cd ${WORK} ; ${RCVS} export -r${TAG} OpenXM ${OpenXM_contrib_files} OpenXM_contrib2) ; \ |
cp Makefile ${WORK}/Makefile ; \ |
cp Makefile ${WORK}/Makefile ; \ |
fi |
fi |
@touch ./.fetch_done |
@touch ./.fetch_done |
|
|
tar-ball: fetch build-tar-work |
tar-ball: fetch build-tar-work |
@if [ ! -f ./.tar-ball_done ]; then \ |
@if [ ! -f ./.tar-ball_done ]; then \ |
cp Makefile ${WORK}/Makefile ; \ |
cp Makefile ${WORK}/Makefile ; \ |
(cd ${WORK}/OpenXM/src ; make generate-source-distribution) ; \ |
|
(cd work ; tar czvf ${TAR_WORK}/openxm-${VERSION}.tar.gz openxm-${VERSION}) ; \ |
(cd work ; tar czvf ${TAR_WORK}/openxm-${VERSION}.tar.gz openxm-${VERSION}) ; \ |
fi |
fi |
touch ./.tar-ball_done |
touch ./.tar-ball_done |