===================================================================
RCS file: /home/cvs/OpenXM/src/gmp/Makefile,v
retrieving revision 1.2
retrieving revision 1.4
diff -u -p -r1.2 -r1.4
--- OpenXM/src/gmp/Makefile	2003/09/14 01:19:57	1.2
+++ OpenXM/src/gmp/Makefile	2004/02/22 08:28:20	1.4
@@ -1,18 +1,29 @@
-# $OpenXM: OpenXM/src/gmp/Makefile,v 1.1 2003/09/02 14:24:43 takayama Exp $
+# $OpenXM: OpenXM/src/gmp/Makefile,v 1.3 2004/02/13 00:47:12 takayama Exp $
 OpenXM_HOME=../..
 OpenXM_contrib=${OpenXM_HOME}/../OpenXM_contrib
 OpenXM_lib=${OpenXM_HOME}/lib
 OpenXM_include=${OpenXM_HOME}/include
 GMP=${OpenXM_contrib}/gmp
 RM=rm
-
-all: configure
+all:
+	@if [ ! -f ./.use_ports ]; then \
+		make all-l ; \
+	else \
+		make -f Makefile-ports all ; \
+	fi
+install:
+	@if [ ! -f ./.use_ports ]; then \
+		make install-l ; \
+	else \
+		make -f Makefile-ports install ; \
+	fi
+all-l: configure
 	-@if [ ! -f ./.make_done ]; then \
 		(cd ${GMP} ; make) ; \
 		touch ./.make_done ; \
 	fi
-install: install-exec
-install-exec: all
+install-l: install-exec-l
+install-exec-l: all-l
 	if [ ! -f ./.install_done ]; then \
 		(cd ${GMP}; make install-exec) ; \
 		cp ${GMP}/gmp.h ${OpenXM_include} ; \
@@ -24,12 +35,12 @@ configure:
 		touch ./.configure_done ; \
 	fi
 clean: 
-	${RM} -f ./.*done
 	@if [ -f ./.make_done ]; then \
 		(cd ${GMP} ; make clean) \
 	fi
-distclean: 
 	${RM} -f ./.*done
+distclean: 
 	-@if [ -f ./.make_done ]; then \
 		(cd ${GMP} ; make distclean) \
 	fi
+	${RM} -f ./.*done