Annotation of OpenXM/bin/Makefile, Revision 1.16
1.16 ! takayama 1: # $OpenXM: OpenXM/bin/Makefile,v 1.15 2000/12/21 11:36:15 takayama Exp $
1.12 maekawa 2:
3: OPENXM_CONTRIB=../../OpenXM_contrib
1.1 maekawa 4:
5: LIBDIR=../lib
1.5 noro 6: FEPLINUX=fep.linux
7: FEPFBSD=fep.fbsd
1.14 maekawa 8: PHCFBSD=fbsd_phcv2p
1.13 maekawa 9: PHCLINUX=lin_phcv2p
1.6 takayama 10: RM=rm
1.1 maekawa 11:
1.9 takayama 12: configure:
13: @if [ -f .configure_done ] ; then \
14: echo "OpenXM/bin is already configured." ; \
15: else \
1.12 maekawa 16: rm -f fep phc ; \
17: if [ "`uname`" = "FreeBSD" ]; then \
18: make configure-freebsd ; \
19: fi ; \
20: if [ "`uname`" = "Linux" ]; then \
21: make configure-linux ; \
22: fi ; \
23: rm -f ox_asir ; \
24: ln -f -s ./asir ox_asir ; \
1.13 maekawa 25: touch ./.configure_done ; \
1.9 takayama 26: fi
27:
1.10 takayama 28: clean-for-install:
29: $(RM) -f *uuencoded*
30:
1.12 maekawa 31: configure-freebsd:
1.13 maekawa 32: if [ -f ${PHCFBSD}.gz.uuencoded ]; then \
33: uudecode -p ${PHCFBSD}.gz.uuencoded | zcat - > phc ; \
34: chmod +x phc ; \
35: fi
1.12 maekawa 36: if [ -f ${FEPFBSD}.gz.uuencoded ]; then \
37: uudecode -p ${FEPFBSD}.gz.uuencoded | zcat - > fep ; \
38: chmod +x fep ; \
39: fi
40:
41: configure-linux:
1.13 maekawa 42: if [ -f ${PHCLINUX}.gz.uuencoded ]; then \
1.15 takayama 43: uudecode -o /dev/stdout ${PHCLINUX}.gz.uuencoded | zcat - > phc ; \
1.12 maekawa 44: chmod +x phc ; \
45: fi
46: if [ -f ${FEPLINUX}.gz.uuencoded ]; then \
1.15 takayama 47: uudecode -o /dev/stdout ${FEPLINUX}.gz.uuencoded | zcat - > fep ; \
1.12 maekawa 48: chmod +x fep ; \
1.6 takayama 49: fi
50:
1.16 ! takayama 51: configure-linux-phc-on-freebsd:
! 52: if [ -f ${PHCLINUX}.gz.uuencoded ]; then \
! 53: uudecode -p ${PHCLINUX}.gz.uuencoded | zcat - > phc ; \
! 54: chmod +x phc ; \
! 55: brandelf -t Linux 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:
1.12 maekawa 59: distclean:
60: rm -f asir ox_asir fep phc
61: @rm -f .configure_done
1.4 maekawa 62:
63: uuencode:
1.5 noro 64: @if [ -f $(FEPLINUX) ]; then \
1.16 ! takayama 65: echo '$OpenXM: OpenXM/bin/Makefile,v 1.15 2000/12/21 11:36:15 takayama Exp $' > $(FEPLINUX).gz.uuencoded ; \
1.5 noro 66: gzip -c $(FEPLINUX) | uuencode $(FEPLINUX).gz >> $(FEPLINUX).gz.uuencoded ; \
67: fi
68: @if [ -f $(FEPFBSD) ]; then \
1.16 ! takayama 69: echo '$OpenXM: OpenXM/bin/Makefile,v 1.15 2000/12/21 11:36:15 takayama Exp $' > $(FEPFBSD).gz.uuencoded ; \
1.5 noro 70: gzip -c $(FEPFBSD) | uuencode $(FEPFBSD).gz >> $(FEPFBSD).gz.uuencoded ; \
1.4 maekawa 71: fi
72: @if [ -f $(PHC) ]; then \
1.16 ! takayama 73: echo '$OpenXM: OpenXM/bin/Makefile,v 1.15 2000/12/21 11:36:15 takayama Exp $' > $(PHC).gz.uuencoded ; \
1.4 maekawa 74: gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \
75: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>