On Sat, Sep 22, 2001 at 06:05:29PM +0200, S?ren Boll Overgaard <[EMAIL PROTECTED]> spake forth: > > To answer your question: You have to set the DESTDIR variable when you > > install the binaries in the package build directory. Most probably > > this means calling "make install --destdir=debian/name-of-package" > > instead of just "make install" > > Below is a cut from the debian/rules file: > > [...] > install: build > dh_testdir > dh_testroot > dh_clean -k > dh_installdirs > > # Add here commands to install the package into debian/wmcpuload. > $(MAKE) install prefix=$(CURDIR)/debian/wmcpuload > # $(MAKE) install destdir=$(CURDIR)/debian/wmcpuload > > [...] > > I've tried both of the $(MAKE)-lines above, but none of them seems to be > working. Is there anything else I should do to put the single binary in > /usr/X11/bin ?
with prefix=/usr and DESTIR=$(CURDIR)/debian/wmcpuload you should get everything installed where appropriate. Note that /usr/X11R6/bin is deprecated. The binary should go into /usr/bin. The alternative is to add the /usr portion to the prefix for *install only*, i.e. $(MAKE) install prefix=$(CURDIR)/debian/wmcpuload/usr but in the case where DESTDIR's supported, this may be suboptimal (if you have config files in /etc you'll probably have to specify sysconfdir=$(CURDIR)/debian/wmcpuload/etc, files in /var you'll need to set another variable, so on so forth). So DESTDIR is really the way to go. -- Mike Markley <[EMAIL PROTECTED]> GPG: 0x3B047084 7FC7 0DC0 EF31 DF83 7313 FE2B 77A8 F36A 3B04 7084 Youth doesn't excuse everything. - Dr. Janice Lester (in Kirk's body), "Turnabout Intruder", stardate 5928.5.