Ken Yap wrote:

> >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
> >
> >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.
>
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug

if you want a cool bash script for helping users extract/run makefiles etc

have a look at
http://www-4.ibm.com/software/developer/library/bash3.html



--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to