Annotation of OpenXM/src/gc/Makefile-ports, Revision 1.2
1.2 ! takayama 1: # $OpenXM: OpenXM/src/gc/Makefile-ports,v 1.1 2003/11/10 11:42:59 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 \
24: (cd ${DISTDIR}; wget --passive-ftp ftp://$(MASTER_CITES)/pub/OpenXM/misc/$(DISTFILES)) ; \
25: fi
26: @touch .fetch_done
27:
28: patch : fetch
29: @if test ! -f .patch_done ; \
30: then \
31: $(RM) work ; \
32: mkdir work ; \
33: (cd work ; tar xzvf ../${DISTDIR}/${DISTFILES} ) ; \
34: fi
35: @touch .patch_done
36: # (cd work; patch -c -p0 <../patch-aa ; patch -c -p0 <../patch-bb ; patch -c -p0 <../patch-cc) ; \
37:
38: build : patch
39: @if test ! -f .build_done ; \
40: then \
41: (cd work/gc6.2 ; ./configure --prefix `pwd`/../../../../../OpenXM ; make ) ; \
42: fi
43: @touch .build_done
44:
45: post-install: build
46: @if test ! -f .post-install_done ; \
47: then \
48: -mkdir ${PREFIX}/lib ${PREFIX}/bin ; \
49: (cd work/gc6.2 ; make install) ; \
50: fi
51: @touch .post-install_done
52:
53: clean:
1.2 ! takayama 54: $(RM) .*_done
1.1 takayama 55: -(cd work/gc6.2 ; make clean)
56: distclean:
1.2 ! takayama 57: $(RM) .*_done ./.use_ports
1.1 takayama 58: -(cd work/gc6.2 ; make distclean)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>