Tugger the SLUGger!SLUG Mailing List Archives

[SLUG] Using $HOME inside Makefile


Hi all,

Can't seem to get this right. I have a Makefile with:

install: 
        cp backup $HOME/bin
        @echo 'Setting executable status...'
        chmod 750 $HOME/bin/backup

make install is trying to do this:
cp backup OME/bin

I also tried ~/bin instead of $HOME/bin but it can't use the
~ also.

I don't want to use /home/mikel/bin as then the Makefile is
not generic.
Whats the really simple stuff I have forgotten. (man make
says nothing about using environment vars inside Makefile)

Mike
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:Mike.Lake@xxxxxxxxxx Ph: 02 9514 1724 Fx: 02
9514 1628 
URL: http://www.science.uts.edu.au/~michael-lake/
Linux enthusiast, active caver and interested in anything
technical.
--------------------------------------------------------------------