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