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

Annotation of OpenXM/bin/Makefile, Revision 1.12

1.12    ! maekawa     1: # $OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $
        !             2:
        !             3: OPENXM_CONTRIB=../../OpenXM_contrib
1.1       maekawa     4:
                      5: LIBDIR=../lib
1.5       noro        6: FEPLINUX=fep.linux
                      7: FEPFBSD=fep.fbsd
1.4       maekawa     8: PHC=lin_phcv2p
1.6       takayama    9: RM=rm
1.1       maekawa    10:
1.9       takayama   11: configure:
                     12:        @if [ -f .configure_done ] ; then \
                     13:                echo "OpenXM/bin is already configured." ; \
                     14:        else \
1.12    ! maekawa    15:                rm -f fep phc ; \
        !            16:                if [ "`uname`" = "FreeBSD" ]; then \
        !            17:                        make configure-freebsd ; \
        !            18:                fi ; \
        !            19:                if [ "`uname`" = "Linux" ]; then \
        !            20:                        make configure-linux ; \
        !            21:                fi ; \
        !            22:                rm -f ox_asir ; \
        !            23:                ln -f -s ./asir ox_asir ; \
        !            24:                @touch ./configure_done ; \
1.9       takayama   25:        fi
                     26:
1.10      takayama   27: clean-for-install:
                     28:        $(RM) -f *uuencoded*
                     29:
1.12    ! maekawa    30: configure-freebsd:
        !            31:        (cd ${OPENXM_CONTRIB}/PHC/Objects/ ; make phc)
        !            32:        install /tmp/phc .
        !            33:        if [ -f ${FEPFBSD}.gz.uuencoded ]; then \
        !            34:                uudecode -p ${FEPFBSD}.gz.uuencoded | zcat - > fep ; \
        !            35:                chmod +x fep ; \
        !            36:        fi
        !            37:
        !            38: configure-linux:
        !            39:        if [ -f ${PHC}.gz.uuencoded ]; then \
        !            40:                uudecode -p ${PHC}.gz.uuencoded | zcat - > phc ; \
        !            41:                chmod +x phc ; \
        !            42:        fi
        !            43:        if [ -f ${FEPLINUX}.gz.uuencoded ]; then \
        !            44:                uudecode -p ${FEPLINUX}.gz.uuencoded | zcat - > fep ; \
        !            45:                chmod +x fep ; \
1.6       takayama   46:        fi
                     47:
1.12    ! maekawa    48: distclean:
        !            49:        if [ "`uname`" = "FreeBSD" ]; then \
        !            50:                (cd ${OPENXM_CONTRIB}/PHC/Objects/ ; make clean) \
1.1       maekawa    51:        fi
1.12    ! maekawa    52:        rm -f asir ox_asir fep phc
        !            53:        @rm -f .configure_done
1.4       maekawa    54:
                     55: uuencode:
1.5       noro       56:        @if [ -f $(FEPLINUX) ]; then \
1.12    ! maekawa    57:                echo '$OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \
1.5       noro       58:                gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \
                     59:        fi
                     60:        @if [ -f $(FEPFBSD) ]; then \
1.12    ! maekawa    61:                echo '$OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \
1.5       noro       62:                gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \
1.4       maekawa    63:        fi
                     64:        @if [ -f $(PHC) ]; then \
1.12    ! maekawa    65:                echo '$OpenXM: OpenXM/bin/Makefile,v 1.11 2000/09/04 03:17:22 takayama Exp $' > $(PHC).gz.uuencoded ; \
1.4       maekawa    66:                gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \
                     67:        fi

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