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

Annotation of OpenXM/src/pari/Makefile, Revision 1.17

1.17    ! takayama    1: # $OpenXM: OpenXM/src/pari/Makefile,v 1.16 2003/03/07 10:16:58 noro Exp $
1.1       maekawa     2:
1.16      noro        3: #PARI = ../../../OpenXM_contrib/pari-2.2
                      4: PARI = ../../../OpenXM_contrib/pari
1.10      takayama    5: OpenXM_ROOT = ../../../OpenXM
1.1       maekawa     6:
                      7: all: configure
                      8:        @if [ ! -f ./.make_done ]; then \
1.15      noro        9:                if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then\
                     10:                        (cd $(PARI)/O*-* ; make lib-sta); \
                     11:                else \
                     12:                        (cd $(PARI) ; make all);  \
                     13:                fi \
1.1       maekawa    14:        fi
                     15:        @touch ./.make_done
                     16:
1.11      takayama   17: install: install-lib-bin
                     18:
                     19: install-lib-bin: all install-lib
1.17    ! takayama   20:        if [ ! -f ./.install-lib-bin_done ]; then \
        !            21:        (cd $(PARI)/O*-* ; make install-include) ; \
1.15      noro       22:        if [ "`uname | sed -e 's/_.*$$//'`" != "CYGWIN" ]; then \
                     23:                (cd $(PARI)/O*-* ; make install-lib-dyn);  \
                     24:                (cd $(PARI)/O*-* ; make install-bin);  \
                     25:                (cd $(PARI)/O*-* ; make install-misc);  \
                     26:                (cd $(PARI)/O*-* ; make install-man);  \
                     27:                (cd $(PARI)/O*-* ; make install-data);  \
1.17    ! takayama   28:        fi ; \
        !            29:        touch ./.install-lib-bin_done ; \
1.15      noro       30:        fi
                     31:
1.11      takayama   32:
                     33: install-doc: all
                     34:        (cd $(PARI) ; make doc)
1.10      takayama   35:        @if [ ! -d $(OpenXM_ROOT)/doc/pari ]; then \
                     36:           mkdir $(OpenXM_ROOT)/doc/pari ;\
                     37:        fi
                     38:        -cp $(OpenXM_ROOT)/lib/pari/users.dvi  $(OpenXM_ROOT)/doc/pari/users.dvi
                     39:        -cp $(OpenXM_ROOT)/lib/pari/tutorial.dvi  $(OpenXM_ROOT)/doc/pari/tutorial.dvi
1.1       maekawa    40:
1.13      noro       41: clean: patch-clean
1.1       maekawa    42:        @if [ -f ./.make_done ]; then \
                     43:                (cd $(PARI) ; make clean) \
                     44:        fi
1.17    ! takayama   45:        @rm -f ./.*_done
1.3       maekawa    46:
                     47: distclean:
1.7       maekawa    48:        @cat BINARIES | xargs -t rm -rf
1.1       maekawa    49:
1.13      noro       50: configure: patch
1.1       maekawa    51:        @if [ ! -f ./.configure_done ]; then \
                     52:                (cd $(PARI) ; ./Configure --prefix=../../../OpenXM) \
                     53:        fi
                     54:        @touch ./.configure_done
1.13      noro       55:
                     56: patch:
                     57:        @if [ ! -f ./.patch_done ]; then \
1.14      noro       58:                (cd $(PARI)/config ; patch < ../../../OpenXM/src/pari/Makefile.SH.diff) \
1.13      noro       59:        fi
                     60:        @touch ./.patch_done
                     61:
                     62: patch-clean:
                     63:        @if [ -f ./.patch_done ]; then \
1.14      noro       64:                (cd $(PARI)/config ; patch -R < ../../../OpenXM/src/pari/Makefile.SH.diff) \
1.13      noro       65:        fi
                     66:        @rm -f ./.patch_done
1.8       maekawa    67:
                     68: install-lib: all
1.17    ! takayama   69:        if [ ! -f ./.install-lib_done ]; then \
        !            70:        (cd $(PARI) ; make install-lib-sta) ; \
        !            71:        ranlib ../../lib/libpari.a ; \
        !            72:        touch ./.install-lib_done ; \
        !            73:        fi

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