Annotation of OpenXM/src/uuencoded/Makefile, Revision 1.1
1.1 ! takayama 1: # $OpenXM$
! 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 \
! 19: rm -f $(OPENXM_BIN)/fep $(OPENXM_BIN)/phc ; \
! 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: if [ -f ${FEPFBSD}.gz.uuencoded ]; then \
! 37: uudecode -p $(OPENXM_UU)/${FEPFBSD}.gz.uuencoded | zcat - > $(OPENXM_BIN)/fep ; \
! 38: chmod +x $(OPENXM_BIN)/fep ; \
! 39: fi
! 40:
! 41: configure-linux:
! 42: if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \
! 43: uudecode -o /dev/stdout $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
! 44: chmod +x $(OPENXM_BIN)/phc ; \
! 45: fi
! 46: if [ -f $(OPENXM_UU)/${FEPLINUX}.gz.uuencoded ]; then \
! 47: uudecode -o /dev/stdout $(OPENXM_UU)/${FEPLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/fep ; \
! 48: chmod +x $(OPENXM_BIN)/fep ; \
! 49: fi
! 50:
! 51: configure-linux-phc-on-freebsd:
! 52: if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \
! 53: uudecode -p $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
! 54: chmod +x $(OPENXM_BIN)/phc ; \
! 55: brandelf -t Linux $(OPENXM_BIN)/phc ; \
! 56: echo "You need to turn on the linux emulation. Add linux_enable=\"YES\" to /etc/rc.conf and pkg_add linux_base-(version number)." ; \
! 57: fi
! 58:
! 59: distclean:
! 60: (cd $(OPENXM_BIN) ; rm -f asir ox_asir fep phc)
! 61: @rm -f .configure_done
! 62:
! 63: uuencode:
! 64: @if [ -f $(OPENXM_BIN)/$(FEPLINUX) ]; then \
! 65: echo -n '$Open' > $(OPENXM_UU)/$(FEPLINUX).gz.uuencoded ; \
! 66: echo -n 'XM$' >> $(OPENXM_UU)/$(FEPLINUX).gz.uuencoded ; \
! 67: gzip -c $(OPENXM_BIN)/$(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(OPENXM_UU)/$(FEPLINUX).gz.uuencoded ; \
! 68: fi
! 69: @if [ -f $(OPENXM_BIN)/$(FEPFBSD) ]; then \
! 70: echo -n '$Open' > $(OPENXM_UU)/$(FEPFBSD).gz.uuencoded ; \
! 71: echo -n 'XM$' >> $(OPENXM_UU)/$(FEPFBSD).gz.uuencoded ; \
! 72: gzip -c $(OPENXM_BIN)/$(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(OPENXM_UU)/$(FEPFBSD).gz.uuencoded ; \
! 73: fi
! 74: @if [ -f $(OPENXM_BIN)/$(PHC) ]; then \
! 75: echo -n '$Open' > $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
! 76: echo -n 'XM$' >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
! 77: gzip -c $(OPENXM_BIN)/$(PHC) | uuencode $(PHC).gz >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
! 78: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>