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

Re: Separate Build dirs



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Leo Costela:

> but how precisely do I do that, what's the cleanest way to do it in
> debian/rules?

I currently do that for the uqwk package, building two versions from
the same source, one NNTP version and one non-NNTP version, in
different directories.

In my rules file I have this under build:

  mkdir -p nntp spool
  cd nntp  && ../configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-config=config-debian.h
  cd spool && ../configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-nntp --disable-nntpauth --cache-file=../nntp/config.cache
  $(MAKE) -C nntp all
  $(MAKE) -C spool all

(I use the cache from the first build to speed up the configure process
from the other build, this might not always be appropriate). Of course,
the Makefiles must be properly aware of the difference between the
build and the source directory (there needs to be a $(srcdir)/ in front
of the names of the source files), but other than that they shouldn't
need to be modified.

The clean target becomes simpler, to clean the build directories I just
do:

  -rm -rf nntp spool

I'm currently not using the install targets from the upstream
makefiles, but if it would be quite easy to add. What I do instead is
just to copy the binaries out from the respective build directories
into the correct package hierarchy. This also means that I do not need
to use dh_movefiles, since nothing is evered stored in debian/tmp.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: http://www.softwolves.pp.se/peter/gpg.shtml

iD8DBQE82KkEkryUdmOUJl4RAvLQAJ9y1OZqoZKRqrAbHRxmOhNxTnnasACgpJOr
Ry4SIuKxiKJk2Pm6uxh1zak=
=vWLG
-----END PGP SIGNATURE-----

-- 
\\//
Peter - I do not read or respond to mail with HTML attachments.
  Statement concerning unsolicited e-mail according to Swedish law:
  http://www.softwolves.pp.se/peter/reklampost.html


-- 
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: