[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / uuencoded

Annotation of OpenXM/src/uuencoded/Makefile, Revision 1.2

1.2     ! takayama    1: # $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.1 2001/08/21 00:39:13 takayama Exp $
1.1       takayama    2:
                      3: OPENXM=../../../OpenXM
                      4: OPENXM_CONTRIB=../../../OpenXM_contrib
                      5: OPENXM_BIN=$(OPENXM)/bin
                      6: OPENXM_UU=$(OPENXM_CONTRIB)/uuencoded
                      7:
                      8: LIBDIR=${OPENXM}/lib
                      9: FEPLINUX=fep.linux
                     10: FEPFBSD=fep.fbsd
                     11: PHCFBSD=fbsd_phcv2p
                     12: PHCLINUX=lin_phcv2p
                     13: RM=rm
                     14:
                     15: configure:
                     16:        @if [ -f .configure_done ] ; then \
                     17:                echo "OpenXM/bin is already configured." ; \
                     18:        else \
1.2     ! takayama   19:                rm -f $(OPENXM_BIN)/phc ; \
1.1       takayama   20:                if [ "`uname`" = "FreeBSD" ]; then \
                     21:                        make configure-freebsd ; \
                     22:                fi ; \
                     23:                if [ "`uname`" = "Linux" ]; then \
                     24:                        make configure-linux ; \
                     25:                fi ; \
                     26:                (cd $(OPENXM_BIN) ; rm -f ox_asir ; ln -f -s ./asir ox_asir) ; \
                     27:                touch ./.configure_done ; \
                     28:        fi
                     29:
                     30:
                     31: configure-freebsd:
                     32:        if [ -f $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded ]; then \
                     33:                uudecode -p $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
                     34:                chmod +x $(OPENXM_BIN)/phc ; \
                     35:        fi
                     36:
                     37: configure-linux:
                     38:        if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \
                     39:                uudecode -o /dev/stdout $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
                     40:                chmod +x $(OPENXM_BIN)/phc ; \
                     41:        fi
                     42:
                     43: configure-linux-phc-on-freebsd:
                     44:        if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \
                     45:                uudecode -p $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
                     46:                chmod +x $(OPENXM_BIN)/phc ; \
                     47:                brandelf -t Linux $(OPENXM_BIN)/phc ; \
                     48:                echo "You need to turn on the linux emulation. Add linux_enable=\"YES\" to /etc/rc.conf and pkg_add linux_base-(version number)." ; \
                     49:        fi
                     50:
                     51: distclean:
1.2     ! takayama   52:        (cd $(OPENXM_BIN) ; rm -f asir ox_asir phc)
1.1       takayama   53:        @rm -f .configure_done
                     54:
                     55: uuencode:
                     56:        @if [ -f $(OPENXM_BIN)/$(PHC) ]; then \
                     57:                echo -n '$Open' > $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
                     58:                echo -n 'XM$' >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
                     59:                gzip -c $(OPENXM_BIN)/$(PHC) | uuencode $(PHC).gz >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
                     60:        fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>