Another thing to realize is that the number of binary .debs generated from a source package is dictated by the contents of debian/control. Each "Package:" stanza indicates another binary .deb to be generated by the package.
(Sorry if that's already been mentioned. I didn't see it, and couldn't tell if that was part of what was puzzling Roman.) Cheers, tony James Westby wrote: > On (19/02/07 19:54), Roman Müllenschläder wrote: >> Let's ask different: >> I'm able to do differnet compiles and install (using 'make install') the >> whole >> program (including pos, themes, docs, binaries, etc.) into subdirs beneath >> debian .. >> debian/compiled-version1 >> debian/compiled-version2 >> debian/compiled-version3 >> >> What I want now is to put only the binaries in the different flavour-deb's >> and >> all the common rest in a common.deb. >> How would I do that? Just not use upstream's 'make install' and use >> dh_install >> together with flavour.install files in debian? >> Thus would mean, I have to re-do all what is done in upstream's Makefile by >> hand in 'rules' !? >> >> So ... I do have 3 subdirs under debian containing 3 complete installs with >> different flavours. >> How do I part them up into 3 flavour.debs and 1 common.deb? >> > > You don't need to recreate everything in the rules, you can use the > upstream Makefile. > > The easiest approach would seem to be to have an install target for > each version that looks like > > install-flavour1-stamp: build-flavour1-stamp > $(MAKE) install DESTDIR="$(CURDIR)/debian/tmp/flavour1" > > where the build target depends on the configure target that passes the > correct options. The configure target should also depend on a semi-clean > target that removes the built files but not debian/tmp. You can add a > proper clean rule as normal. > > Then you can have package.flavour1.install files that have > > debian/tmp/flavour1/file > > which should grab the correct files for each flavour. > > Then make the binary target depend on all the install targets, you may > have some trouble getting binary-arch/indep separation though. > > You can add as much Makefile madness to this as you like to generate the > targets that you need, but the basic idea should work. > > Note that I have never packaged a package like this, so you might hit a > snag with this method, if so I suggest you look at other examples. > > Thanks, > > James >
signature.asc
Description: OpenPGP digital signature