Package: debhelper
Version: 7.2.9
Severity: wishlist

Hi,

I have a package which needs me to pass 'PREFIX=/usr' to the $MAKE call in the build rule and 'DESTDIR=$(CURDIR)/debian/package DOC="NEWS TODO CONTRIBUTORS" PREFIX=/usr' in the install rule. I have not found an easier way to achieve this with debhelper than using override_dh_auto_build and override_dh_auto_install rules. However, instead of overriding the complete $MAKE call, it would be nice if there were environment variables that dh listens to which tell what arguments are to be passed to $MAKE.

In my case this proposal would turn this debian/rules:

        #!/usr/bin/make -f
        
        %:
                dh $@
        
        override_dh_auto_build:
                $(MAKE) PREFIX=/usr
        
        override_dh_auto_install:
$(MAKE) install DESTDIR=$(CURDIR)/debian/package DOC="NEWS TODO CONTRIBUTORS" PREFIX=/usr

into for example this:

        #!/usr/bin/make -f
        
        DH_AUTO_BUILD_TARGET += PREFIX=/usr
DH_AUTO_INSTALL_TARGET += install PREFIX=/usr DESTDIR=$(CURDIR)/debian/hot-babe DOC="NEWS TODO CONTRIBUTORS"
        
        %:
                dh $@

Cheers,
Fabian


--
Dipl.-Phys. Fabian Greffrath

Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum

Telefon: +49 (0)234 / 32-26334
Fax:     +49 (0)234 / 32-14227
E-Mail:  [email protected]




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to