I’m guessing your source package builds a single binary package; i.e., your
debian/control has a single
Package: stanza. In such situations,
dh_auto_install installs files to
debian/package, and the assumption then is that that is sufficient, i.e. all the files you need to install end up in the right place under
dh_install is useful mostly for source packages building multiple binary packages: it takes files under
. and copies them to the appropriate target under
In your case, since you’re trying to install
usr/include/*, I suspect you don’t need
dh_install at all — you should find the files you want to install ready and waiting in
debian/package/usr/include. However, if you’re installing files under
usr/include, you might be packaging a library, in which case you should change your
debian/control file to create multiple binary packages (one for the library, one for the development files), and then
dh_auto_install will install to
dh_install will work as you expect.
See also Dpkg dh_install: copy files from the build directory rather than the debian/tmp dir?