> 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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to