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