help-make
[Top][All Lists]
Advanced

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

Re: sourcing scripts inside Make


From: Aditya Kher
Subject: Re: sourcing scripts inside Make
Date: Thu, 1 Feb 2007 13:49:31 +0530

> 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


Actually mere executing wont help beacuse that will not set the
environment variables that I have in .cshrc
Those variables are used in future targets build (i.e. after foo) by Make
--
Aditya Kher
http://kher.org




reply via email to

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