version 1.2, 2002/09/03 01:05:28 |
version 1.3, 2003/09/02 14:26:06 |
|
|
# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.1 2001/08/21 00:39:13 takayama Exp $ |
# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.2 2002/09/03 01:05:28 takayama Exp $ |
|
|
OPENXM=../../../OpenXM |
OPENXM=../../../OpenXM |
OPENXM_CONTRIB=../../../OpenXM_contrib |
OPENXM_CONTRIB=../../../OpenXM_contrib |
Line 12 PHCFBSD=fbsd_phcv2p |
|
Line 12 PHCFBSD=fbsd_phcv2p |
|
PHCLINUX=lin_phcv2p |
PHCLINUX=lin_phcv2p |
RM=rm |
RM=rm |
|
|
configure: |
install: |
@if [ -f .configure_done ] ; then \ |
@if [ -f .install_done ] ; then \ |
echo "OpenXM/bin is already configured." ; \ |
echo "OpenXM/bin is already installed." ; \ |
else \ |
else \ |
rm -f $(OPENXM_BIN)/phc ; \ |
rm -f $(OPENXM_BIN)/phc ; \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
make configure-freebsd ; \ |
make install-freebsd ; \ |
fi ; \ |
fi ; \ |
if [ "`uname`" = "Linux" ]; then \ |
if [ "`uname`" = "Linux" ]; then \ |
make configure-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 ./.configure_done ; \ |
touch ./.install_done ; \ |
fi |
fi |
|
|
|
|
configure-freebsd: |
install-freebsd: |
if [ -f $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded ]; then \ |
if [ -f $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded ]; then \ |
uudecode -p $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ |
uudecode -p $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ |
chmod +x $(OPENXM_BIN)/phc ; \ |
chmod +x $(OPENXM_BIN)/phc ; \ |
fi |
fi |
|
|
configure-linux: |
install-linux: |
if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \ |
if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \ |
uudecode -o /dev/stdout $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ |
uudecode -o /dev/stdout $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ |
chmod +x $(OPENXM_BIN)/phc ; \ |
chmod +x $(OPENXM_BIN)/phc ; \ |
fi |
fi |
|
|
configure-linux-phc-on-freebsd: |
install-linux-phc-on-freebsd: |
if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \ |
if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \ |
uudecode -p $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ |
uudecode -p $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ |
chmod +x $(OPENXM_BIN)/phc ; \ |
chmod +x $(OPENXM_BIN)/phc ; \ |
Line 50 configure-linux-phc-on-freebsd: |
|
Line 50 configure-linux-phc-on-freebsd: |
|
|
|
distclean: |
distclean: |
(cd $(OPENXM_BIN) ; rm -f asir ox_asir phc) |
(cd $(OPENXM_BIN) ; rm -f asir ox_asir phc) |
@rm -f .configure_done |
@rm -f .install_done |
|
|
uuencode: |
uuencode: |
@if [ -f $(OPENXM_BIN)/$(PHC) ]; then \ |
@if [ -f $(OPENXM_BIN)/$(PHC) ]; then \ |