summaryrefslogtreecommitdiff
path: root/share/man/man5/bsd.port.mk.5
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-07-12 16:17:12 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-07-12 16:17:12 +0000
commit7272d81ab0443b1fdacd3d44e74570df660fe775 (patch)
treee9f1e96bde4facfb6c4e5ef508c3e440405eff91 /share/man/man5/bsd.port.mk.5
parentf4103c4e7332a98588008d0f6017cee0bbd25b2e (diff)
clean and thorough description of distpatch/patch.
Diffstat (limited to 'share/man/man5/bsd.port.mk.5')
-rw-r--r--share/man/man5/bsd.port.mk.529
1 files changed, 14 insertions, 15 deletions
diff --git a/share/man/man5/bsd.port.mk.5 b/share/man/man5/bsd.port.mk.5
index 7d36c1104b9..0d1acc7fc54 100644
--- a/share/man/man5/bsd.port.mk.5
+++ b/share/man/man5/bsd.port.mk.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bsd.port.mk.5,v 1.102 2003/07/12 16:09:10 espie Exp $
+.\" $OpenBSD: bsd.port.mk.5,v 1.103 2003/07/12 16:17:11 espie Exp $
.\"
.\" Copyright (c) 2000 Marc Espie
.\"
@@ -149,16 +149,11 @@ Prints a one-line index entry of the port, suitable for
Short-hand for make clean=dist.
.It Ar distpatch
Apply distribution patches only.
-.It Ar do-patch
-Override for the default behavior of
-.Ar patch .
-It is usually better to override
-.Ar post-patch ,
-as
+See
.Ar patch
-needs to invoke
-.Ar distpatch
-directly for historical reasons.
+and
+.Ev PATCH_CASES
+for details.
.It Ar extract
Extract the distfiles under
.Pa ${WRKDIST}
@@ -251,17 +246,21 @@ and
.Ar post-patch ,
but the default
.Ar do-patch
-target recurses through
-.Ar distpatch
+target invokes
+.Ar distpatch
+directly.
So, if the
.Ar do-patch
target is overridden, it should still begin by calling
make distpatch, before applying
.Ox
specific patches.
-See
-.Ar distpatch
-for the distribution patches-specific description.
+Accordingly, the exact sequence of hooks is:
+.Ar pre-patch ,
+.Ar do-distpatch ,
+.Ar post-distpatch ,
+.Ar do-patch ,
+.Ar post-patch .
If
.Pa ${PATCHDIR}
exists, the files described under