[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#72335: ACCEPTED 31/10/2000] Optional build-arch and build-indep targets for debian/rules



Just playing around with make, and want to suggest this tiny
modification to the proposal:  in place of:

+                  If one or both of the targets <tt>build-arch</tt>
+                  and <tt>build-indep</tt> are not provided, then
+                  invoking <tt>debian/rules</tt> with one of the
+                  not-provided targets as arguments should produce a
+                  exit status code of 2.  Usually this is provided
+                  automatically by make if the target is missing.

(and notwithstanding that we're going to require both or neither), it
should say that "debian/rules -q with one of the not-provided targets
...", because the programs which will want to test this are likely to
do something cheap like:

debian/rules -q build-arch
if [ $? -eq 2 ]; then
    debian/rules build
else
    debian/rules build-arch
fi

To try a full build only to receive an exit status of 2 would not say
whether the build failed or the target was not found.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

         Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
       Debian GNU/Linux Developer,  see http://people.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/



Reply to: