version 1.3, 2003/09/02 14:26:06 |
version 1.4, 2005/08/04 09:58:23 |
|
|
# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.2 2002/09/03 01:05:28 takayama Exp $ |
# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.3 2003/09/02 14:26:06 takayama Exp $ |
|
|
OPENXM=../../../OpenXM |
OPENXM=../../../OpenXM |
OPENXM_CONTRIB=../../../OpenXM_contrib |
OPENXM_CONTRIB=../../../OpenXM_contrib |
Line 13 PHCLINUX=lin_phcv2p |
|
Line 13 PHCLINUX=lin_phcv2p |
|
RM=rm |
RM=rm |
|
|
install: |
install: |
@if [ -f .install_done ] ; then \ |
@if [ ! -f .install_done ] ; then \ |
echo "OpenXM/bin is already installed." ; \ |
|
else \ |
|
rm -f $(OPENXM_BIN)/phc ; \ |
rm -f $(OPENXM_BIN)/phc ; \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
if [ "`which gnatmake`" ]; then \ |
|
(cd ${OPENXM_CONTRIB}/PHC/Objects; mkdir tmp; ${MAKE} phc; strip tmp/phc); \ |
|
cp -p ${OPENXM_CONTRIB}/PHC/Objects/tmp/phc ${OPENXM_BIN}/phc; \ |
|
elif [ "`uname`" = "FreeBSD" ]; then \ |
make install-freebsd ; \ |
make install-freebsd ; \ |
fi ; \ |
elif [ "`uname`" = "Linux" ]; then \ |
if [ "`uname`" = "Linux" ]; then \ |
|
make install-linux ; \ |
make install-linux ; \ |
fi ; \ |
fi ; \ |
(cd $(OPENXM_BIN) ; rm -f ox_asir ; ln -f -s ./asir ox_asir) ; \ |
(cd $(OPENXM_BIN) ; rm -f ox_asir ; ln -f -s ./asir ox_asir) ; \ |
touch ./.install_done ; \ |
touch ./.install_done ; \ |
fi |
fi |
|
|
|
|
install-freebsd: |
install-freebsd: |
if [ -f $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded ]; then \ |
if [ -f $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded ]; then \ |