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

Annotation of OpenXM/bin/Makefile, Revision 1.10

1.10    ! takayama    1: # $OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $
1.1       maekawa     2:
                      3: LIBDIR=../lib
1.5       noro        4: FEPLINUX=fep.linux
                      5: FEPFBSD=fep.fbsd
1.4       maekawa     6: PHC=lin_phcv2p
1.6       takayama    7: RM=rm
1.1       maekawa     8:
1.9       takayama    9: configure:
                     10:        @if [ -f .configure_done ] ; then \
                     11:                echo "OpenXM/bin is already configured." ; \
                     12:        else \
                     13:                make configure-real ; \
                     14:        fi
                     15:
1.10    ! takayama   16: clean-for-install:
        !            17:        $(RM) -f *uuencoded*
        !            18:
1.9       takayama   19: configure-real: $(FEPLINUX) $(FEPFBSD) $(PHC)
1.6       takayama   20:        @if [ "`uname`" = "Linux" ]; then \
                     21:                rm -f fep phc ; \
                     22:                ln -f -s $(FEPLINUX) fep ; \
                     23:                ln -f -s $(PHC) phc ; \
1.7       takayama   24:            echo "Linux binary generation: fep, phc" ; \
1.6       takayama   25:        else \
1.7       takayama   26:                echo "Not Linux" ; \
                     27:        fi
                     28:        -@if [ "`uname`" = "FreeBSD" ]; then \
                     29:                rm -f fep phc ; \
                     30:                ln -f -s $(FEPFBSD) fep ; \
                     31:                ln -f -s $(PHC) phc ; \
                     32:                brandelf -t Linux ./phc ; \
                     33:                echo "FreeBSD binary generation: fep and phc. Linux Emulation is requied to execute phc." ; \
                     34:        else \
                     35:             echo "Not FreeBSD" ; \
1.6       takayama   36:        fi
                     37:
1.8       noro       38:        rm -f ox_asir
1.9       takayama   39:        ln -f -s ./asir ox_asir
                     40:        @touch .configure_done
1.6       takayama   41:
                     42: $(FEPLINUX) : $(FEPLINUX).gz.uuencoded
1.5       noro       43:        @if [ -f $(FEPLINUX).gz.uuencoded ]; then \
                     44:                uudecode $(FEPLINUX).gz.uuencoded ; \
                     45:                gzip -d $(FEPLINUX).gz ; \
                     46:                chmod +x $(FEPLINUX) ; \
                     47:        fi
                     48:
1.6       takayama   49: $(FEPFBSD) : $(FEPFBSD).gz.uuencoded
1.5       noro       50:        @if [ -f $(FEPFBSD).gz.uuencoded ]; then \
                     51:                uudecode $(FEPFBSD).gz.uuencoded ; \
                     52:                gzip -d $(FEPFBSD).gz ; \
                     53:                chmod +x $(FEPFBSD) ; \
1.1       maekawa    54:        fi
                     55:
1.6       takayama   56: $(PHC) : $(PHC).gz.uuencoded
1.4       maekawa    57:        @if [ -f $(PHC).gz.uuencoded ]; then \
1.5       noro       58:                uudecode $(PHC).gz.uuencoded ; \
                     59:                gzip -d $(PHC).gz ; \
1.4       maekawa    60:                chmod +x $(PHC) ; \
1.1       maekawa    61:        fi
                     62:
                     63: distclean:
1.9       takayama   64:        rm -f asir ox_asir fep fep.linux fep.fbsd lin_phcv2p phc .configure_done
1.4       maekawa    65:
                     66: uuencode:
1.5       noro       67:        @if [ -f $(FEPLINUX) ]; then \
1.10    ! takayama   68:                echo '$OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \
1.5       noro       69:                gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \
                     70:        fi
                     71:        @if [ -f $(FEPFBSD) ]; then \
1.10    ! takayama   72:                echo '$OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \
1.5       noro       73:                gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \
1.4       maekawa    74:        fi
                     75:        @if [ -f $(PHC) ]; then \
1.10    ! takayama   76:                echo '$OpenXM: OpenXM/bin/Makefile,v 1.9 2000/03/10 08:03:27 takayama Exp $' > $(PHC).gz.uuencoded ; \
1.4       maekawa    77:                gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \
                     78:        fi

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