Hi,
it seems to me that dh_auto_clean ignores the -O--sourcedirectory parameter.
The package in question is zsnes which has its source in the src/ subdirectory.
dh ist invoked with the following lines in debian/rules:
%:
dh $@ --sourcedirectory=src --with autoreconf
However, dh_auto_clean does not change into the src directory (or call "make -C
src clean" or whatever) when "debian/rules clean" is invoked. Thus, all object
files and stuff have to get removed manually in an overrde_dh_clean target,
which is of course cumbersome.
As an aside, in the "rott" package, dh is invoked with the "--sourcedir=rott"
parameter, which is obviously a syntax error, since only dh_install is supposed
to consider it. In this package, however, cleaning up the sources in the rott/
directory works...
- Fabian