I admit what I'm doing is a little beyond my current skill, after all, I'm just a user of Debian not a developer. But I think it is better using apt/dpkg to manage the software/tools I need in my research than just using "./configure && make && make install". I prefer to use the ready-made packages if there is any. I googled, but unfortunately I can't find any.
I find a way to solve the this issue by answering 'b' to the question asked by dh_make, that is using cdbs, then setting the variables DEB_CONFIGURE_EXTRA_FLAGS and DEB_CONFIGURE_PREFIX in debian/rules. I am not sure weather this is the right way or the best way, but at least it works. Thanks anyway! Waixy 2009/11/2 Osamu Aoki <os...@debian.org> > On Mon, Nov 02, 2009 at 08:25:01PM +0800, waixy zhou wrote: > > hi, > > I want to package the cross-complie tools for RTEMS(a realtime operation > > used in embedded system), and use dh_make to generate the template of > > "debian/" directory, then i find the file *debian/rules* is too simple, > just > > 3 lines left after eliminating the comments, as follows: > > #! /usr/bin/make -f > > %: > > dh $@ > > I have not used dh_make under squeeze recently ... but I know lenny one > now comes with option to create package with cdbs. This cdbs is not > covered by NM guide. > > > This is very different from the ***Debian New Maintainers' Guide**. *This > is > > my first time to do package, so I am confused. > > You should have answered differently to the question. > > > How can I generate the > > template debian/rules file containing the details as New Maintainers' > Guide? > > Read: > > $ man dh_make > > > I do not want the cross-complie tools such as gcc/gdb mix up with my > > host-complie tools. So I want to assign at least these complie options: > > --prefix and --target. How can I do that? > > I guess, if you have not created normal package, you are doing something > beyond your current skill. You need to lean step by step. > > Osamu >