version 1.3, 2003/09/02 14:26:06 |
version 1.6, 2005/08/04 10:05:01 |
|
|
# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.2 2002/09/03 01:05:28 takayama Exp $ |
# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.5 2005/08/04 10:00:26 ohara 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; {MAKE} install); \ |
|
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 \ |