- To: SLUG@xxxxxxxxxxx
- Subject: [SLUG] Using $HOME inside Makefile
- From: Michael Lake <Mike.Lake@xxxxxxxxxx>
- Date: Mon Jul 24 14:10:37 2000
- Organization: University of Technology, Sydney
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.
--------------------------------------------------------------------