Annotation of OpenXM/src/gc/Makefile-ports, Revision 1.3
1.3 ! takayama 1: # $OpenXM: OpenXM/src/gc/Makefile-ports,v 1.2 2003/11/10 23:13:38 takayama Exp $
1.1 takayama 2: OpenXM_HOME=../..
3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
5: RM = /bin/rm -rf
6: MASTER_CITES=ftp.math.kobe-u.ac.jp
7: # MASTER_CITES2 =
8: DISTFILES=gc6.2.tar.gz
9:
10: all : build
11: install : post-install
12:
13: pre-fetch:
14: -@if test ! -f .pre-fetch_done ; \
15: then \
16: mkdir ${DISTDIR} ; \
17: fi
18: @touch .pre-fetch_done
19:
20:
21: fetch: pre-fetch
22: @if test ! -f .fetch_done ; \
23: then \
1.3 ! takayama 24: if test ! -f ${DISTDIR}/${DISTFILES} ; then \
! 25: (cd ${DISTDIR}; wget --passive-ftp ftp://$(MASTER_CITES)/pub/OpenXM/misc/$(DISTFILES)) ; \
! 26: fi ; \
1.1 takayama 27: fi
28: @touch .fetch_done
29:
30: patch : fetch
31: @if test ! -f .patch_done ; \
32: then \
33: $(RM) work ; \
34: mkdir work ; \
35: (cd work ; tar xzvf ../${DISTDIR}/${DISTFILES} ) ; \
36: fi
37: @touch .patch_done
38: # (cd work; patch -c -p0 <../patch-aa ; patch -c -p0 <../patch-bb ; patch -c -p0 <../patch-cc) ; \
39:
40: build : patch
41: @if test ! -f .build_done ; \
42: then \
43: (cd work/gc6.2 ; ./configure --prefix `pwd`/../../../../../OpenXM ; make ) ; \
44: fi
45: @touch .build_done
46:
47: post-install: build
48: @if test ! -f .post-install_done ; \
49: then \
50: -mkdir ${PREFIX}/lib ${PREFIX}/bin ; \
51: (cd work/gc6.2 ; make install) ; \
52: fi
53: @touch .post-install_done
54:
55: clean:
1.2 takayama 56: $(RM) .*_done
1.1 takayama 57: -(cd work/gc6.2 ; make clean)
58: distclean:
1.2 takayama 59: $(RM) .*_done ./.use_ports
1.1 takayama 60: -(cd work/gc6.2 ; make distclean)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>