Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: Misalf on June 10, 2014, 08:30:44 PM

Title: [solved] Compile and install to /usr/local without configure script?
Post by: Misalf on June 10, 2014, 08:30:44 PM
Without a  ./configure  script (and adding "--prefix=/usr/local") but just a  Makefile , I do:

Code: [Select]
make
...
make DESTDIR=/tmp/app install
...

What if the resulting path is  /tmp/app/bin  instead of  /tmp/app/usr/local/bin ?
Is there another common way to define the path without a configure script?


Thanks.
Title: Re: Compile and install to /usr/local without configure script?
Post by: hiro on June 10, 2014, 08:40:32 PM
then you just change the path directly in the Makefile.
Title: Re: Compile and install to /usr/local without configure script?
Post by: Misalf on June 10, 2014, 09:07:16 PM
Well, a quick look at the Makefile made me beleive it's using variables for finding libs but the sollution actually was (without editing the Makefile):

Code: [Select]
make
...
make PREFIX=/usr/local DESTDIR=/tmp/app install
...

Thanks, hiro!