Ken Yap wrote:
> >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
> >
> >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)
>
> You have to escape the $ as $$ so that make doesn't try to expand it as
> a make variable and it actually gets to the shell.
Ah yep thats it! I had tried all sorts of combinations of
()'s and \'s.
Thanks.
Mike
--
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:[EMAIL PROTECTED] 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.
--------------------------------------------------------------------
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug