version 1.1, 2001/08/21 00:39:13 |
version 1.2, 2002/09/03 01:05:28 |
|
|
# $OpenXM$ |
# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.1 2001/08/21 00:39:13 takayama Exp $ |
|
|
OPENXM=../../../OpenXM |
OPENXM=../../../OpenXM |
OPENXM_CONTRIB=../../../OpenXM_contrib |
OPENXM_CONTRIB=../../../OpenXM_contrib |
|
|
@if [ -f .configure_done ] ; then \ |
@if [ -f .configure_done ] ; then \ |
echo "OpenXM/bin is already configured." ; \ |
echo "OpenXM/bin is already configured." ; \ |
else \ |
else \ |
rm -f $(OPENXM_BIN)/fep $(OPENXM_BIN)/phc ; \ |
rm -f $(OPENXM_BIN)/phc ; \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
if [ "`uname`" = "FreeBSD" ]; then \ |
make configure-freebsd ; \ |
make configure-freebsd ; \ |
fi ; \ |
fi ; \ |
Line 33 configure-freebsd: |
|
Line 33 configure-freebsd: |
|
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: |
configure-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: |
configure-linux-phc-on-freebsd: |
if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \ |
if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \ |
Line 57 configure-linux-phc-on-freebsd: |
|
Line 49 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 .configure_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 ; \ |