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

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

1.6     ! ohara       1: # $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.5 2005/08/04 10:00:26 ohara 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:
1.3       takayama   15: install:
1.4       ohara      16:        @if [ ! -f .install_done ] ; then \
1.2       takayama   17:                rm -f $(OPENXM_BIN)/phc ; \
1.4       ohara      18:                if [ "`which gnatmake`" ]; then \
1.6     ! ohara      19:                        (cd ${OPENXM_CONTRIB}/PHC/Objects; {MAKE} install); \
1.4       ohara      20:                elif [ "`uname`" = "FreeBSD" ]; then \
1.3       takayama   21:                        make install-freebsd ; \
1.4       ohara      22:                elif [ "`uname`" = "Linux" ]; then \
1.3       takayama   23:                        make install-linux ; \
1.1       takayama   24:                fi ; \
                     25:                (cd $(OPENXM_BIN) ; rm -f ox_asir ; ln -f -s ./asir ox_asir) ; \
1.3       takayama   26:                touch ./.install_done ; \
1.1       takayama   27:        fi
                     28:
1.3       takayama   29: install-freebsd:
1.1       takayama   30:        if [ -f $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded ]; then \
                     31:                uudecode -p $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
                     32:                chmod +x $(OPENXM_BIN)/phc ; \
                     33:        fi
                     34:
1.3       takayama   35: install-linux:
1.1       takayama   36:        if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \
                     37:                uudecode -o /dev/stdout $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
                     38:                chmod +x $(OPENXM_BIN)/phc ; \
                     39:        fi
                     40:
1.3       takayama   41: install-linux-phc-on-freebsd:
1.1       takayama   42:        if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \
                     43:                uudecode -p $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
                     44:                chmod +x $(OPENXM_BIN)/phc ; \
                     45:                brandelf -t Linux $(OPENXM_BIN)/phc ; \
                     46:                echo "You need to turn on the linux emulation. Add linux_enable=\"YES\" to /etc/rc.conf and pkg_add linux_base-(version number)." ; \
                     47:        fi
                     48:
                     49: distclean:
1.2       takayama   50:        (cd $(OPENXM_BIN) ; rm -f asir ox_asir phc)
1.3       takayama   51:        @rm -f .install_done
1.1       takayama   52:
                     53: uuencode:
                     54:        @if [ -f $(OPENXM_BIN)/$(PHC) ]; then \
                     55:                echo -n '$Open' > $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
                     56:                echo -n 'XM$' >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
                     57:                gzip -c $(OPENXM_BIN)/$(PHC) | uuencode $(PHC).gz >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
                     58:        fi

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