Annotation of OpenXM/rc/Makefile, Revision 1.21
1.21 ! takayama 1: # $OpenXM: OpenXM/rc/Makefile,v 1.20 2004/02/26 09:54:27 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
1.20 takayama 7: SHELL_SCRIPTS=asir sm1 oxmath oxMathematica ox openxm webasir
1.8 takayama 8: PREFIX=/usr/local
9: INSTALL_DIR=${PREFIX}/bin
1.11 takayama 10: MAN_DIR=../man/man1
1.19 takayama 11: KDE_MENU_DIR=/usr/lib/menu
1.5 takayama 12:
13: all : dot.bashrc dot.cshrc openxm .done_gen-shell-scripts
1.1 takayama 14:
1.4 takayama 15: dot.bashrc : bashrc repl
1.1 takayama 16: rm -f dot.bashrc
17: echo "# DO NOT EDIT THIS FILE" >dot.bashrc
1.15 takayama 18: ./repl bash <bashrc >>dot.bashrc
1.1 takayama 19:
20: dot.cshrc : cshrc repl
21: rm -f dot.cshrc
22: echo "# DO NOT EDIT THIS FILE" >dot.cshrc
1.15 takayama 23: ./repl csh <cshrc >>dot.cshrc
1.1 takayama 24:
1.13 takayama 25: repl : repl.c
1.14 takayama 26: rm -f repl
27: ${CC} -static -o ../bin/rc.repl repl.c
28: ln -s ../bin/rc.repl repl
1.1 takayama 29:
1.18 ohara 30: openxm : dot.bashrc
1.1 takayama 31: rm -f openxm
1.16 takayama 32: echo "#!/bin/sh" >openxm
33: cat dot.bashrc >>openxm
1.6 noro 34: echo 'exec $$*' >>openxm
1.1 takayama 35: chmod +x openxm
1.3 takayama 36: cp -f openxm ../bin
1.1 takayama 37:
1.4 takayama 38: .done_gen-shell-scripts : dot.cshrc Makefile gen-shell-scripts
39: ./gen-shell-scripts
40: touch .done_gen-shell-scripts
41:
1.19 takayama 42: install : install-usr-bin install-kde-menu
43: install-usr-bin: all
44: -cp -f $(SHELL_SCRIPTS) ${INSTALL_DIR}
1.21 ! takayama 45: install-kde-menu-knoppix:
! 46: install kde/openxm-binary-knoppix ${KDE_MENU_DIR}/openxm-binary
1.11 takayama 47: install.man :
48: -cp openxm.1 ${MAN_DIR}
1.5 takayama 49:
1.13 takayama 50: install.asir_key:
51: -../bin/sm1 -f fetch_asir_key.sm1
1.17 takayama 52:
53: install-bin :
54: cp -f webasir ../bin
1.13 takayama 55:
1.1 takayama 56: clean :
1.18 ohara 57: rm -rf dot.bashrc dot.cshrc repl openxm $(SHELL_SCRIPTS) .done_gen-shell-scripts work
1.4 takayama 58:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>