Tobi <listacco...@e-tobi.net> writes:

> Fabian Greffrath wrote:
>
>> Why not so it the other way round, i.e. start two different scripts (or
>> the same script with different parameters) from a debian/rules Makefile
>> depending on the environment variable?
>
> Might be possible, but it would require major changes to debian/rules, but
> our goal is to keep debian/rules as simple as possible without any stuff
> you wouldn't expect in a Debian package.
>
> Before adding any ugly stuff to debian/rules I would rather let an
> external build script to the dirty work. That's just harder to integrate
> into our pbuilder build process.
>
> Tobias

Or verry little (although I probably get crucified for this):

mv debian/rules debian/rules-no-make
cat >debian/rules << EOF
#! /usr/bin/make -f

%:
        $(MAKE) debian/rules-no-make $@
EOF

But I would really go with the idea to include different makefile
sniplets depending on your variable directly in the Makefile. You can
even be conform and use DEB_BUILD_OPTIONS like many other packages do
to allow altered builds.

MfG
        Goswin


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to