Steve Langasek wrote: > It would be nice if it weren't necessary to duplicate the -D option in > distinct override rules for each command, since obviously the option used > should be the same for each of these (and for dh_auto_test, which I'm not > bothering to override in this case). For samba this would only save us one > override rule (dh_auto_clean) since we have other needs for overriding each > of the others, but reducing the duplicated code is still valuable, and other > packages may benefit much more. > > exporting DH_OPTIONS isn't a great solution because the build system options > are *not* common options; debhelper commands other than dh_auto_* will throw > a warning about ignored unknown options if you try to pass > DH_OPTIONS=-Dsource3.
Pass -D to dh. There is an example in its man page: Here is an example of overriding where the dh_auto_* commands find the package's source, for a package where the source is located in a subdirectory. #!/usr/bin/make -f %: dh $@ --sourcedirectory=src -- see shy jo
signature.asc
Description: Digital signature