* Raphael Hertzog <hert...@debian.org>, 2011-05-21, 22:32:
  #!/usr/bin/make -f
  %:
          dh $@
  build: build-arch build-indep ;
  build-indep:
          $(MAKE) docs
  build-arch:
          $(MAKE) bins

...but even if they did, this example would be incorrect. An autobuilder calls "./debian/rules binary-arch", which calls "dh binary-arch", which calls dh_auto_build, which does not care how the "build" target is defined.

Huh? I think you're wrong.

autobuilders call "dpkg-buildpackage -B" which runs "debian/rules build"
followed by "fakeroot debian/rules binary-arch".

This difference between "build" and "binary{,-arch,-indep}" is nothing new
and dpkg-buildpackage always called both.

Oh, I didn't say that dpkg-buildpackage doesn't call "debian/rules build". I does, but it's not very relevant here.

My point was: dpkg-buildpackage also calls "debian/rules binary-arch", which will typically do all the work we were trying to avoid by defining
separate build-indep and build-arch targets.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to