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

Re: DESTDIR in a native distro. How ?



On Tue, Dec 15, 1998 at 03:18:52PM +0900, Ionutz Borcoman wrote:
> How do I set the DESTDIR in my Makefile ? If a non-debian user will
> download the package, he/she will want to install my program in
> /usr/local. If he/she is a debian user, the deb package should be
> created from the tar.gz and files moved to completely different places,
> like /etc, /usr/X11R6 .... 
> 
> So which is the best way for solving this ? 

Perhaps you could do something like this in your makefile:

PREFIX=/usr/local

install:
	install mybinary $(PREFIX)/bin
	install mymanualpage.1 $(PREFIX)/man/man1

Then in your debian/rules file, you can do "make install PREFIX=/usr"
Or more like "make install PREFIX=debian/tmp/usr"

Hamish
-- 
Hamish Moffatt VK3TYD              hamish@debian.org, hamish@rising.com.au
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


Reply to: