Annotation of OpenXM/rc/Makefile, Revision 1.9
1.9 ! takayama 1: # $OpenXM: OpenXM/rc/Makefile,v 1.8 2000/03/01 00:15:45 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.9 ! takayama 6: # SHELL_SCRIPTS=asir sm1 gp k0 oxmath oxMathematica ox
! 7: SHELL_SCRIPTS=asir sm1 gp oxmath oxMathematica ox
1.8 takayama 8: PREFIX=/usr/local
9: INSTALL_DIR=${PREFIX}/bin
1.5 takayama 10:
11: all : dot.bashrc dot.cshrc openxm .done_gen-shell-scripts
1.1 takayama 12:
1.4 takayama 13: dot.bashrc : bashrc repl
1.1 takayama 14: rm -f dot.bashrc
15: echo "# DO NOT EDIT THIS FILE" >dot.bashrc
16: ./repl <bashrc >>dot.bashrc
17:
18: dot.cshrc : cshrc repl
19: rm -f dot.cshrc
20: echo "# DO NOT EDIT THIS FILE" >dot.cshrc
21: ./repl <cshrc >>dot.cshrc
22:
23: repl : repl.c
1.3 takayama 24: ${CC} -static -o repl repl.c
1.1 takayama 25:
26: openxm : dot.cshrc
27: rm -f openxm
28: echo "#!/bin/csh" >openxm
29: cat dot.cshrc >>openxm
1.6 noro 30: echo 'exec $$*' >>openxm
1.1 takayama 31: chmod +x openxm
1.3 takayama 32: cp -f openxm ../bin
1.1 takayama 33:
1.4 takayama 34: .done_gen-shell-scripts : dot.cshrc Makefile gen-shell-scripts
35: ./gen-shell-scripts
36: touch .done_gen-shell-scripts
37:
1.5 takayama 38: install : all
39: cp -f $(SHELL_SCRIPTS) ${INSTALL_DIR}
40:
1.1 takayama 41: clean :
1.5 takayama 42: rm -f dot.bashrc dot.cshrc repl openxm $(SHELL_SCRIPTS) .gen-shell-scripts
1.4 takayama 43:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>