Annotation of OpenXM/src/uuencoded/Makefile, Revision 1.3
1.3 ! takayama 1: # $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.2 2002/09/03 01:05:28 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:
! 16: @if [ -f .install_done ] ; then \
! 17: echo "OpenXM/bin is already installed." ; \
1.1 takayama 18: else \
1.2 takayama 19: rm -f $(OPENXM_BIN)/phc ; \
1.1 takayama 20: if [ "`uname`" = "FreeBSD" ]; then \
1.3 ! takayama 21: make install-freebsd ; \
1.1 takayama 22: fi ; \
23: if [ "`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:
30:
1.3 ! takayama 31: install-freebsd:
1.1 takayama 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:
1.3 ! takayama 37: install-linux:
1.1 takayama 38: if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \
39: uudecode -o /dev/stdout $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
40: chmod +x $(OPENXM_BIN)/phc ; \
41: fi
42:
1.3 ! takayama 43: install-linux-phc-on-freebsd:
1.1 takayama 44: if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \
45: uudecode -p $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \
46: chmod +x $(OPENXM_BIN)/phc ; \
47: brandelf -t Linux $(OPENXM_BIN)/phc ; \
48: echo "You need to turn on the linux emulation. Add linux_enable=\"YES\" to /etc/rc.conf and pkg_add linux_base-(version number)." ; \
49: fi
50:
51: distclean:
1.2 takayama 52: (cd $(OPENXM_BIN) ; rm -f asir ox_asir phc)
1.3 ! takayama 53: @rm -f .install_done
1.1 takayama 54:
55: uuencode:
56: @if [ -f $(OPENXM_BIN)/$(PHC) ]; then \
57: echo -n '$Open' > $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
58: echo -n 'XM$' >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
59: gzip -c $(OPENXM_BIN)/$(PHC) | uuencode $(PHC).gz >> $(OPENXM_UU)/$(PHC).gz.uuencoded ; \
60: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>