]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Clarify required rules in debian/rules
authorRuss Allbery <rra@debian.org>
Wed, 18 Aug 2010 20:55:34 +0000 (13:55 -0700)
committerRuss Allbery <rra@debian.org>
Wed, 18 Aug 2010 20:55:34 +0000 (13:55 -0700)
* Use the word "implemented" to describe required targets in
  debian/rules, which is clearer about allowing wildcard rules.  List
  the required rules in their own paragraph rather than with the
  paragraph discussing non-interactivity, and explicitly mark all rules
  as either required or optional.  (Closes: #536790)

debian/changelog
policy.sgml

index 743a18ec32dabc53cdc1afdf198bbd46897a6c68..035fc26349ef6beae36664b648d74f142a88621d 100644 (file)
@@ -10,6 +10,11 @@ debian-policy (3.9.2.0) UNRELEASED; urgency=low
     machine.  (Closes: #591857)
   * Correct the name of the Filesystem Hierarchy Standard in the package
     description.  Patch from Christoph Anton Mitterer.  (Closes: #590696)
+  * Use the word "implemented" to describe required targets in
+    debian/rules, which is clearer about allowing wildcard rules.  List
+    the required rules in their own paragraph rather than with the
+    paragraph discussing non-interactivity, and explicitly mark all rules
+    as either required or optional.  (Closes: #536790)
 
  -- Russ Allbery <rra@debian.org>  Thu, 12 Aug 2010 10:47:47 -0700
 
index 06242900f3c728638a9708ebb3e2a016442ced1b..9037de81337d0b7b743214d0cb9f9b34b3c645c4 100644 (file)
           identical behavior.
        </p>
 
+       <p>
+         The following targets are required and must be implemented
+         by <file>debian/rules</file>: <tt>clean</tt>, <tt>binary</tt>,
+         <tt>binary-arch</tt>, <tt>binary-indep</tt>, and <tt>build</tt>.
+         These are the targets called by <prgn>dpkg-buildpackage</prgn>.
+       </p>
+
        <p>
          Since an interactive <file>debian/rules</file> script makes it
-         impossible to auto-compile that package and also makes it
-         hard for other people to reproduce the same binary
-         package, all <em>required targets</em> must be
-         non-interactive. At a minimum, required targets are the
-         ones called by <prgn>dpkg-buildpackage</prgn>, namely,
-         <em>clean</em>, <em>binary</em>, <em>binary-arch</em>,
-         <em>binary-indep</em>, and <em>build</em>. It also follows
-         that any target that these targets depend on must also be
+         impossible to auto-compile that package and also makes it hard
+         for other people to reproduce the same binary package, all
+         required targets must be non-interactive.  It also follows that
+         any target that these targets depend on must also be
          non-interactive.
        </p>
 
        <p>
-         The targets are as follows (required unless stated otherwise):
+         The targets are as follows:
          <taglist>
-           <tag><tt>build</tt></tag>
+           <tag><tt>build</tt> (required)</tag>
            <item>
              <p>
                The <tt>build</tt> target should perform all the
              </p>
            </item>
 
-           <tag><tt>binary</tt>, <tt>binary-arch</tt>,
-             <tt>binary-indep</tt>
+           <tag><tt>binary</tt> (required), <tt>binary-arch</tt>
+             (required), <tt>binary-indep</tt> (required)
            </tag>
            <item>
              <p>
              </p>
            </item>
 
-           <tag><tt>clean</tt></tag>
+           <tag><tt>clean</tt> (required)</tag>
            <item>
              <p>
                This must undo any effects that the <tt>build</tt>