On Fri, 15 Jul 2016, Roberto Bagnara wrote: > I am not sure I understand the issue. From the (partial) typescript, > it seems a make is attempted in the doc directory without a previous > make at the top level. This has never been supported: make should > be run in the top-level directory and it will recurse on the > subdirectories in the right order.
I'm glad that you ask. make does whatever you tell it to do in debian/rules, nothing more, and nothing less. When using "dpkg-buildpackage -A" to create only the architecture-independent packages, the targets which are used are build-indep and binary-indep. The build-arch target does indeed "make" at the top level directory but in this case it does not run because we are creating arch-independent packages only. The build-indep target does this: build-indep: build-indep-stamp build-indep-stamp: configure-stamp export save_size=10000 ; $(MAKE) -C doc user-configured touch $@ I think this explains the error. In this case debian/rules is blindly assuming that build-arch has been run at least once. This is why "dpkg-buildpackage" works when you build all binary packages. But this has to work as well when you want to create only arch-independent packages. So, you have to arrange things in debian/rules so that make does whatever is right to do in each case. Thanks.