Annotation of OpenXM/src/kan96xx/Makefile, Revision 1.24
1.24 ! takayama 1: ## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.23 2000/08/31 13:35:09 takayama Exp $
1.9 takayama 2:
1.3 takayama 3: ## Type in make configure and make all to build all
1.9 takayama 4: OpenXM_contrib=../../../OpenXM_contrib
1.10 maekawa 5: OPENXM_CONTRIB=../../../OpenXM_contrib
1.12 takayama 6: OpenXM_ROOT=../../../OpenXM
7: OpenXM_bin=$(OpenXM_ROOT)/bin
8:
1.10 maekawa 9: GC=$(OPENXM_CONTRIB)/gc
1.9 takayama 10:
1.21 takayama 11: all : all-plugin all-sm1 all-kanlib.a
1.16 takayama 12: ## .SUFFIXES:
1.1 maekawa 13:
1.24 ! takayama 14: all2 : all-gc
1.9 takayama 15: (cd Kan; make all)
16:
1.17 takayama 17: all-gc: configure_symbolic_links
1.10 maekawa 18: (cd $(GC) ; make all)
19:
1.9 takayama 20:
1.13 takayama 21: all-sm1 : all-plugin
22: (cd Kan; make all)
23:
1.17 takayama 24: all-plugin : configure_symbolic_links
1.13 takayama 25: (cd plugin ; make all)
26:
27: all-kanlib.a : all-plugin
28: (cd Kan ; make kanlib.a)
29:
1.1 maekawa 30:
31:
32: ### When you make sm1 without the garbage collector, type in make sm1.nogc
33: sm1.nogc :
34: (cd Kan; make sm1.nogc)
1.2 takayama 35:
1.21 takayama 36: configure: configure_symbolic_links
1.11 maekawa 37:
1.3 takayama 38:
1.2 takayama 39: configure_symbolic_links :
1.18 ohara 40: @if test ! -f ./.done_links ; \
1.17 takayama 41: then \
42: /bin/rm -f gc gmp lib Doc/var.sm1 ; \
43: ln -f -s $(OpenXM_contrib)/gc gc ; \
44: ln -f -s $(OpenXM_contrib)/gmp gmp ; \
45: ln -f -s ./Doc lib ; \
46: (cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) ; \
47: fi
48: @touch ./.done_links
1.1 maekawa 49:
50: ### generate a distribution.
51: dist :
52: ./makeDist
53: ###############
1.23 takayama 54: install : install-bin-OpenXM install-doc install-man
1.19 takayama 55:
1.22 takayama 56: install.man: install-man #aliases
57:
58: install-man :
1.19 takayama 59: @if [ ! -d $(OpenXM_ROOT)/man ]; then \
60: mkdir $(OpenXM_ROOT)/man ; \
61: fi
62: @if [ ! -d $(OpenXM_ROOT)/man/man1 ]; then \
63: mkdir $(OpenXM_ROOT)/man/man1 ; \
64: fi
65: -cp Doc/sm1.1 $(OpenXM_ROOT)/man/man1
1.12 takayama 66:
1.23 takayama 67: install-usr-local: install-bin-usr-local #alias
68:
69: install-bin-usr-local :
1.1 maekawa 70: mkdir /usr/local/lib/sm1
71: cp lib/* /usr/local/lib/sm1
72: cp Kan/sm1 /usr/local/bin
73:
74: ###############
75: install-binary :
76: /bin/rm -f sm1
77: echo ":" > sm1
78: echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
79: echo "export LOAD_SM1_PATH" >>sm1
80: echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
81: echo -n '$$' >>sm1
82: echo '*' >>sm1
83: chmod +x sm1
84: ln -s sm1 Kan/sm1
85: install-binary-solaris :
86: /bin/rm -f sm1
87: /usr/ucb/echo ":" > sm1
88: /usr/ucb/echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
89: /usr/ucb/echo "export LOAD_SM1_PATH" >>sm1
90: /usr/ucb/echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
91: /usr/ucb/echo -n '$$' >>sm1
92: /usr/ucb/echo '*' >>sm1
93: chmod +x sm1
94: ln -s sm1 Kan/sm1
95: clean-binary :
96: echo " ../kanbinary* will be removed"
97: echo "after 10 seconds. To cancel type in ctrl-C."
98: ( sleep 10 ; /bin/rm -rf ../kanbinary* )
1.12 takayama 99:
1.23 takayama 100: install-openXM-bin: install-bin-OpenXM #alias
101:
102: install-bin-OpenXM: clean-for-debug
1.12 takayama 103: cp Kan/sm1 $(OpenXM_bin)
1.23 takayama 104:
1.12 takayama 105: install-for-debug :
106: ln -f -s ../src/kan96xx/Kan/sm1 $(OpenXM_bin)/sm1
107:
1.22 takayama 108: install-doc: install-document
109:
110: install-document : #alias
111: -(cd Doc ; make install-document)
1.1 maekawa 112:
113: ##############
1.12 takayama 114: clean-for-debug :
115: /bin/rm -f $(OpenXM_bin)/sm1
116:
1.1 maekawa 117: clean :
1.17 takayama 118: /bin/rm -f ./.done_links
1.1 maekawa 119: (cd Kan; make clean)
120: (cd plugin; make clean)
121: /bin/rm -f sm1
122:
123:
124: ### clean also *.a files.
1.8 takayama 125: cleana: distclean
126:
1.17 takayama 127: distclean : clean
1.1 maekawa 128: (cd Kan; make cleana)
129: (cd plugin; make clean; /bin/rm -f *.a)
1.17 takayama 130: /bin/rm -rf gc gmp lib Doc/var.sm1
131:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>