svn commit: r390334 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Mon Jun 22 21:44:40 UTC 2015


Author: bapt
Date: Mon Jun 22 21:44:39 2015
New Revision: 390334
URL: https://svnweb.freebsd.org/changeset/ports/390334

Log:
  Factorize the fake for convenience targets

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Mon Jun 22 21:39:10 2015	(r390333)
+++ head/Mk/bsd.port.mk	Mon Jun 22 21:44:39 2015	(r390334)
@@ -5254,15 +5254,12 @@ fake-pkg: create-manifest
 # Depend is generally meaningless for arbitrary ports, but if someone wants
 # one they can override this.  This is just to catch people who've gotten into
 # the habit of typing `make depend all install' as a matter of course.
-#
-.if !target(depend)
-depend:
-.endif
-
 # Same goes for tags
-.if !target(tags)
-tags:
+.for _t in depend tags
+.if !target(${_t})
+${_t}:
 .endif
+.endfor
 
 .if !defined(NOPRECIOUSMAKEVARS)
 # These won't change, so we can pass them through the environment


More information about the svn-ports-head mailing list