aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.pre.mk
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1998-11-11 05:21:29 +0000
committerSatoshi Asami <asami@FreeBSD.org>1998-11-11 05:21:29 +0000
commitc2e32ac36f406a78d4fb097baacb7fd65c4817d8 (patch)
tree7af39c89abbd9de28c19f326b346eef290971c04 /Mk/bsd.port.pre.mk
parent2ac4730a2a7a8eb28bf47f0dd8b2369d679bccef (diff)
downloadports-c2e32ac36f406a78d4fb097baacb7fd65c4817d8.tar.gz
ports-c2e32ac36f406a78d4fb097baacb7fd65c4817d8.zip
Make bsd.port.mk includable in two phases. bsd.port.pre.mk defines only
a few variables that could be used in the port Makefile for ".if exists()" tests. bsd.port.post.mk defines the rest. Note: if you define USE_X_PREFIX or USE_IMAKE, put it before including bsd.port.pre.mk. These are the only two variables used in the first part. In reality, bsd.port.pre.mk and bsd.port.post.mk just include bsd.port.mk with special variables to turn part of it off.
Notes
Notes: svn path=/head/; revision=14462
Diffstat (limited to 'Mk/bsd.port.pre.mk')
-rw-r--r--Mk/bsd.port.pre.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mk/bsd.port.pre.mk b/Mk/bsd.port.pre.mk
new file mode 100644
index 000000000000..b4fc122add09
--- /dev/null
+++ b/Mk/bsd.port.pre.mk
@@ -0,0 +1,7 @@
+# $Id$
+
+BEFOREPORTMK= yes
+
+.include <bsd.port.mk>
+
+.undef BEFOREPORTMK