I have a Makefile that starts with
prefix      = /opt/$(PACKAGE)
and expects make prefix=/usr in case someone wants a non-/opt installation. There's no ./configure (and no need for one really).
The package is trivially debianizable via
%:
        dh $@ 
as debian/rules except that, due to the prefix=/usr requirement, one would have to litter the rules with
override_dh_auto_install:
        make prefix=/usr DESTDIR=debian/BUILD install
(also dh_auto_build).
What is the elegant way to tell debhelper to add a prefix= to all make invocations (preferably without touching the makefile, otherwise there are many workarounds)?
 
     
    