Annotation of OpenXM/rc/Makefile, Revision 1.12
1.12 ! takayama 1: # $OpenXM: OpenXM/rc/Makefile,v 1.11 2000/03/05 06:54:00 takayama Exp $
1.5 takayama 2: # make repl
3: # make all
1.8 takayama 4: # make install [ PREFIX=/home/hoge ] ; Default is /usr/local
1.2 takayama 5: CC=gcc
1.10 takayama 6: # SHELL_SCRIPTS=asir sm1 oxgp k0 oxmath oxMathematica ox
7: SHELL_SCRIPTS=asir sm1 oxgp oxmath oxMathematica ox openxm
1.8 takayama 8: PREFIX=/usr/local
9: INSTALL_DIR=${PREFIX}/bin
1.11 takayama 10: MAN_DIR=../man/man1
1.5 takayama 11:
12: all : dot.bashrc dot.cshrc openxm .done_gen-shell-scripts
1.1 takayama 13:
1.4 takayama 14: dot.bashrc : bashrc repl
1.1 takayama 15: rm -f dot.bashrc
16: echo "# DO NOT EDIT THIS FILE" >dot.bashrc
17: ./repl <bashrc >>dot.bashrc
18:
19: dot.cshrc : cshrc repl
20: rm -f dot.cshrc
21: echo "# DO NOT EDIT THIS FILE" >dot.cshrc
22: ./repl <cshrc >>dot.cshrc
23:
24: repl : repl.c
1.3 takayama 25: ${CC} -static -o repl repl.c
1.1 takayama 26:
27: openxm : dot.cshrc
28: rm -f openxm
29: echo "#!/bin/csh" >openxm
30: cat dot.cshrc >>openxm
1.6 noro 31: echo 'exec $$*' >>openxm
1.1 takayama 32: chmod +x openxm
1.3 takayama 33: cp -f openxm ../bin
1.1 takayama 34:
1.4 takayama 35: .done_gen-shell-scripts : dot.cshrc Makefile gen-shell-scripts
36: ./gen-shell-scripts
37: touch .done_gen-shell-scripts
38:
1.12 ! takayama 39: install : all
1.5 takayama 40: cp -f $(SHELL_SCRIPTS) ${INSTALL_DIR}
1.11 takayama 41:
42: install.man :
43: -cp openxm.1 ${MAN_DIR}
1.5 takayama 44:
1.1 takayama 45: clean :
1.5 takayama 46: rm -f dot.bashrc dot.cshrc repl openxm $(SHELL_SCRIPTS) .gen-shell-scripts
1.4 takayama 47:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>