version 1.1, 2001/08/21 00:39:13 |
version 1.6, 2005/08/04 10:05:01 |
|
|
# $OpenXM$ |
# $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 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." ; \ |
rm -f $(OPENXM_BIN)/phc ; \ |
else \ |
if [ "`which gnatmake`" ]; then \ |
rm -f $(OPENXM_BIN)/fep $(OPENXM_BIN)/phc ; \ |
(cd ${OPENXM_CONTRIB}/PHC/Objects; {MAKE} install); \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
elif [ "`uname`" = "FreeBSD" ]; then \ |
make configure-freebsd ; \ |
make install-freebsd ; \ |
|
elif [ "`uname`" = "Linux" ]; then \ |
|
make install-linux ; \ |
fi ; \ |
fi ; \ |
if [ "`uname`" = "Linux" ]; then \ |
|
make configure-linux ; \ |
|
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 |
|
|
|
install-freebsd: |
configure-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 |
if [ -f ${FEPFBSD}.gz.uuencoded ]; then \ |
|
uudecode -p $(OPENXM_UU)/${FEPFBSD}.gz.uuencoded | zcat - > $(OPENXM_BIN)/fep ; \ |
|
chmod +x $(OPENXM_BIN)/fep ; \ |
|
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 |
if [ -f $(OPENXM_UU)/${FEPLINUX}.gz.uuencoded ]; then \ |
|
uudecode -o /dev/stdout $(OPENXM_UU)/${FEPLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/fep ; \ |
|
chmod +x $(OPENXM_BIN)/fep ; \ |
|
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 57 configure-linux-phc-on-freebsd: |
|
Line 47 configure-linux-phc-on-freebsd: |
|
fi |
fi |
|
|
distclean: |
distclean: |
(cd $(OPENXM_BIN) ; rm -f asir ox_asir fep phc) |
(cd $(OPENXM_BIN) ; rm -f asir ox_asir phc) |
@rm -f .configure_done |
@rm -f .install_done |
|
|
uuencode: |
uuencode: |
@if [ -f $(OPENXM_BIN)/$(FEPLINUX) ]; then \ |
|
echo -n '$Open' > $(OPENXM_UU)/$(FEPLINUX).gz.uuencoded ; \ |
|
echo -n 'XM$' >> $(OPENXM_UU)/$(FEPLINUX).gz.uuencoded ; \ |
|
gzip -c $(OPENXM_BIN)/$(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(OPENXM_UU)/$(FEPLINUX).gz.uuencoded ; \ |
|
fi |
|
@if [ -f $(OPENXM_BIN)/$(FEPFBSD) ]; then \ |
|
echo -n '$Open' > $(OPENXM_UU)/$(FEPFBSD).gz.uuencoded ; \ |
|
echo -n 'XM$' >> $(OPENXM_UU)/$(FEPFBSD).gz.uuencoded ; \ |
|
gzip -c $(OPENXM_BIN)/$(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(OPENXM_UU)/$(FEPFBSD).gz.uuencoded ; \ |
|
fi |
|
@if [ -f $(OPENXM_BIN)/$(PHC) ]; then \ |
@if [ -f $(OPENXM_BIN)/$(PHC) ]; then \ |
echo -n '$Open' > $(OPENXM_UU)/$(PHC).gz.uuencoded ; \ |
echo -n '$Open' > $(OPENXM_UU)/$(PHC).gz.uuencoded ; \ |
echo -n 'XM$' >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \ |
echo -n 'XM$' >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \ |