1 |
On Wednesday 17 April 2002 16:53, Sean Mitchell wrote: |
2 |
> > ./configure --prefix=${D}/usr mandir=${D}/usr/share/man || die |
3 |
> |
4 |
> No, you miss my point.... what's the alternative to hardcoding |
5 |
> /usr? |
6 |
> |
7 |
PREFIX="/usr" |
8 |
./configure --prefix=${PREFIX} mandir=/usr/share/man || die |
9 |
make |
10 |
|
11 |
make DESTDIR=${D} install |
12 |
|
13 |
Use the destdir to specify where the files need to be installed. |
14 |
Prefix specifies where files are going to be when the program is run. |
15 |
Most programs support the DESTDIR variable. Sometimes overriding |
16 |
prefix at the install also works. But NEVER do it at compile time, as |
17 |
that might break things. |
18 |
|
19 |
If there is no easy way to have DESTDIR (or equiv) support you need to |
20 |
edit the makefile, and add it. That's very rare though. Most times |
21 |
you only need to specify every other destination option on the make |
22 |
install line. |
23 |
|
24 |
Paul |
25 |
|
26 |
-- |
27 |
Paul de Vrieze |
28 |
Junior Researcher |
29 |
Mail: pauldv@××××××.nl |
30 |
Homepage: http://www.devrieze.net |