help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sourcing scripts inside Make


From: John Graham-Cumming
Subject: Re: sourcing scripts inside Make
Date: Thu, 01 Feb 2007 09:08:12 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aditya Kher wrote:
> a silly question. How do I source a script inside a Makefile(say for
> setting up the environment etc)?
> source <script> doesnt work.
> 
> Makefile:
> 
> foo:
> <TAB> source ~/.cshrc

Can't you just do?

foo:
    ~/.cshrc

Or if that file is not executable do

foo:
    /bin/sh ~/.cshrc

John.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFwZ/sLphrp73n/hARAljkAJ0ZGN9Ac3PBM6SsKZPkhbHXjs4XKgCgru72
4Nz/gCsRxsOLaT3QZGeDtNc=
=AIip
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]