[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making a package with multiple binaries



On Sat, Oct 21, 2000 at 08:59:17PM +0100, Roger Leigh wrote:
> I fail to see how to run configure twice, with different options in the
> build-stamp rule and then install both into the right place in the install
> rule (I just get identical stuff pacakged in two locations),

Well, it's simple really :) Just do something like this in the build rule:

	dh_testdir
	./configure --with-one-set-of-options
	$(MAKE)
	mkdir option1-build-dir
	mv src/foo src/bar src/baz option1-build-dir
	$(MAKE) distclean
	./configure --with-another-set-of-options
	$(MAKE)
	mkdir option2-build-dir
	mv src/foo src/bar src/baz option2-build-dir
	touch $@

Of course, in the clean rule, also do

	rm -rf option1-build-dir option2-build-dir

> and dh_gencontrol also breaks:
> 
> dh_gencontrol
> dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
> dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
> 
> The dependency file is not output.

You have to use the -a option for dh_* commands. Put this at the top of the
file:

export DH_OPTIONS

and then in the line before binary-arch rule add this:

binary-arch: DH_OPTIONS=-a

That should do it...

If something breaks, ask again :)

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: