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

Re: Multiple compile of source (ie, different configure lines for each package)



Turbo/others,

> I'm packaging Nagios. It builds tree packages from one source:
> 'nagios-text', 'nagios-pgsql' and 'nagios-mysql'. The differences
> is quite obvious: Compile the source three times, each time with 
> different ./configure options.

configure: configure-stamp
configure-stamp:
	mkdir -p compile/text compile/pgsql compile/mysql
	cd compile/text && ../../configure --with-db=text
	cd compile/pgsql && ../../configure --with-db=pgsql
	cd compile/mysql && ../../configure --with-db=mysql
	touch $@

build: build-stamp
build-stamp:
	make -C compile/text
	make -C compile/pgsql
	make -C compile/mysql
	touch $@

and so on. python-imaging does some similar thing, have a look at
1.1.3-2 for the above version and 1.1.3-3 for the more flexible approach
where you only need to change one variable when new versions are
added/removed.

   Simon

Attachment: pgprnylsQbtGM.pgp
Description: PGP signature


Reply to: