WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [solved] Compile and install to /usr/local without configure script?  (Read 1810 times)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
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.
« Last Edit: June 12, 2014, 01:38:44 PM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Compile and install to /usr/local without configure script?
« Reply #1 on: June 10, 2014, 08:40:32 PM »
then you just change the path directly in the Makefile.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Compile and install to /usr/local without configure script?
« Reply #2 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!
Download a copy and keep it handy: Core book ;)