[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / rc

Annotation of OpenXM/rc/Makefile, Revision 1.23

1.23    ! takayama    1: # $OpenXM: OpenXM/rc/Makefile,v 1.22 2004/06/14 11:03:52 takayama Exp $
        !             2: # make install-under-prefix  [ prefix=/home/hoge ]  ; Default is /usr/local
        !             3: prefix=/usr/local
1.2       takayama    4: CC=gcc
1.10      takayama    5: # SHELL_SCRIPTS=asir sm1 oxgp k0 oxmath oxMathematica ox
1.20      takayama    6: SHELL_SCRIPTS=asir sm1 oxmath oxMathematica ox openxm webasir
1.23    ! takayama    7: INSTALL_DIR=${prefix}/bin
1.11      takayama    8: MAN_DIR=../man/man1
1.19      takayama    9: KDE_MENU_DIR=/usr/lib/menu
1.5       takayama   10:
1.23    ! takayama   11: all-trad :  dot.bashrc  dot.cshrc .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
1.15      takayama   16:        ./repl bash <bashrc >>dot.bashrc
1.1       takayama   17:
                     18: dot.cshrc : cshrc repl
                     19:        rm -f dot.cshrc
                     20:        echo "# DO NOT EDIT THIS FILE" >dot.cshrc
1.15      takayama   21:        ./repl csh <cshrc >>dot.cshrc
1.1       takayama   22:
1.13      takayama   23: repl : repl.c
1.14      takayama   24:        rm -f repl
1.22      takayama   25:        ${CC} -o ../bin/rc.repl repl.c
1.14      takayama   26:        ln -s ../bin/rc.repl repl
1.1       takayama   27:
1.4       takayama   28: .done_gen-shell-scripts : dot.cshrc Makefile gen-shell-scripts
                     29:        ./gen-shell-scripts
1.23    ! takayama   30:        -install openxm ../bin
1.4       takayama   31:        touch .done_gen-shell-scripts
                     32:
1.23    ! takayama   33: #For the backword compatibility.
        !            34: install: install-trad
        !            35: install-trad : all-trad  install-man
        !            36:        -install $(SHELL_SCRIPTS) ${INSTALL_DIR}
        !            37: install-man :
        !            38:        -install openxm.1 ${MAN_DIR}
1.21      takayama   39: install-kde-menu-knoppix:
                     40:        install kde/openxm-binary-knoppix ${KDE_MENU_DIR}/openxm-binary
1.5       takayama   41:
1.23    ! takayama   42: clean :
        !            43:        rm -rf dot.bashrc dot.cshrc repl openxm $(SHELL_SCRIPTS) .done_gen-shell-scripts work global .done_global
1.17      takayama   44:
1.23    ! takayama   45: ## New targets.  Relocate OpenXM under ${prefix}
        !            46: ## They are designed to be a top level Makefile
        !            47: all:
        !            48:        (cd ../src ; make all)
        !            49: all-non-free:
        !            50:        (cd ../src ; make all-asir2000)
        !            51: all-global-shell-scripts: repl
        !            52:        @if [ ! -f .done_global ] ; then \
        !            53:        echo "Generating shell scripts in global" ; \
        !            54:        rm -rf global ; mkdir global ; \
        !            55:        (cd global ; ../repl bash --prefix ${prefix} <../bashrc >dot.bashrc); \
        !            56:        (cd global ; ../repl csh --prefix ${prefix} <../cshrc >dot.cshrc); \
        !            57:        (cd global ; ../gen-shell-scripts) ; \
        !            58:        touch .done_global ; \
        !            59:        fi
        !            60: install-under-prefix: all-global-shell-scripts
        !            61:        (cd ../src ; make install)
        !            62:        make copy-free
        !            63:        make copy-non-free
        !            64:
        !            65: clean-under-prefix:
        !            66:        -(cd ${prefix} ; rm -rf ${prefix}/OpenXM )
        !            67:
        !            68: # junk-list is not a collection of real junk files.
        !            69: # Files in it are not necessary for the binary package. They are important.
        !            70: copy-free: all-global-shell-scripts
        !            71:        -mkdir ${prefix}
        !            72:        -(cd ../.. ; tar czf - --exclude-from OpenXM/rc/non-free-list --exclude OpenXM/misc --exclude OpenXM/rc --exclude OpenXM/src --exclude-from OpenXM/rc/junk-list OpenXM) | (cd ${prefix} ; tar xvzf -)
        !            73: # During installation OpenXM/bin/openxm must be overridden by global/openxm
        !            74:        install global/openxm ${prefix}/OpenXM/bin
        !            75:
        !            76: copy-non-free:
        !            77:        -mkdir ${prefix}
        !            78:        -(cd ../.. ; tar czf - --exclude-from OpenXM/rc/junk-list `cat OpenXM/rc/non-free-list`) | (cd ${prefix} ; tar xvzf -)
1.4       takayama   79:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>