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