[37080] trunk/Makefile

jkh at apple.com jkh at apple.com
Mon May 26 01:52:32 PDT 2008


Revision: 37080
          http://trac.macosforge.org/projects/macports/changeset/37080
Author:   jkh at apple.com
Date:     2008-05-26 01:52:31 -0700 (Mon, 26 May 2008)

Log Message:
-----------
This directory has always seemed naked somehow.  This, at least, will allow
you to check the repo out and do something with it straight away (it also fixes
a peeve I have with initial setup in this admittedly less common case).

Added Paths:
-----------
    trunk/Makefile

Added: trunk/Makefile
===================================================================
--- trunk/Makefile	                        (rev 0)
+++ trunk/Makefile	2008-05-26 08:52:31 UTC (rev 37080)
@@ -0,0 +1,15 @@
+PREFIX=	/opt/local
+SRCS=	${PREFIX}/etc/macports/sources.conf
+
+default: all
+
+all:
+	@(cd base; [ ! -f Makefile ] && ./configure ; make all)
+
+install: all
+	@(cd base; make install)
+	@if egrep -q ^rsync ${SRCS}; then \
+	  echo file://`pwd`/dports/ >> ${SRCS}; \
+	  sed -i .orig -e 's/^rsync/#rsync/' ${SRCS}; \
+	  echo "${SRCS} automatically configured"; \
+        fi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080526/41287b7e/attachment.htm 


More information about the macports-changes mailing list