Find the answer to your Linux question:
Results 1 to 6 of 6
Is this possible, perhaps screwing around with a workdir?? I wana set it up so when I run a install (make) of a source it installs everything to a file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    27

    Making all fills install to a folder regardless.. (workdir?)


    Is this possible, perhaps screwing around with a workdir??

    I wana set it up so when I run a install (make) of a source it installs everything to a file (say /root/test) like it was root.. soo if the program called for something installed in /bin it would go to /root/test/bin)

    possible?

  2. #2
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    Quote Originally Posted by koontar
    Is this possible, perhaps screwing around with a workdir??

    I wana set it up so when I run a install (make) of a source it installs everything to a file (say /root/test) like it was root.. soo if the program called for something installed in /bin it would go to /root/test/bin)

    possible?
    It is indeed, what you want is an environment variable called DESTDIR, as long as the program supports it, which most do these days, when I used DESTDIR I would use it as `pwd`/tmp, so that ment it would use a directory called tmp in the current directory as the root directory, and install to `pwd`/tmp/bin, etc.
    The way to use it is like this;
    Code:
    make install DESTDIR=`pwd`/tmp
    The Makefile usually contains install routines like this $(DESTDIR)$(prefix)$(bindir)program, so when DESTDIR is null, it just picks up from $(prefix)$(bindir)program, use DESTDIR and you shouldn't have a problem.

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    27
    sorry for idoicy but, what exactly is the point of the password? (that is pwd right?)

    thanks though ill try this anyways right now

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    Quote Originally Posted by koontar
    sorry for idoicy but, what exactly is the point of the password? (that is pwd right?)

    thanks though ill try this anyways right now
    No, it isn't password, pwd means present working directory, the ` ` around the command makes the output of the command replace it, pwd being the present working directory.

  6. #5
    Just Joined!
    Join Date
    Jun 2006
    Posts
    27
    alright... I unziped privoxy

    cd'd to its dir

    mkdir mo (trying to make a module outa this)

    make

    make install DESTDIR='pwd'/mo

    installed successfully...


    cd mo

    and nothings in there.. anny other suggestions? did I screw somethin up?

  7. #6
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    Quote Originally Posted by koontar
    did I screw somethin up?
    You're not wrapping pwd correctly, those aren't apostraphes ('), they're back ticks (`), you can copy my example if you're not sure where that is.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •