setting a path in bash shell

Hello all,

Sorry if the question if stupid but I have no big experience with programming.
I am trying to set a path to be used in a makefile.in, for installation of a Fortran code. The makefile.in contains the string

$(CODE_NAME)

Now, when I type in the bash shell

export CODE_NAME=/Users/laura/code_folder

the compiling starts regularly. In order to automatize the process, I copied the line above in the .bash_profile (I have done this in the past for aliases and it worked). However in this case it does not work. Anybody can tell me what's wrong?

Thanks in advance!

What if you export your variable in the .bashrc instead of .bash_profile?

I have tried, but it doesn't work...

edit the makefile -

CODE_PATH := /Users/laura/code_folder

I had tried that too, and in the past (with old make files) it had worked. But now it doesn't work anymore. I was actually wondering why!

Back to square one.

What OS are you on? Are you using the implmentation of make that comes with that OS or is it an add-on (like GNU make)

I'm using Mac OS S 10.5.8. I think I'm using the implementation of make that comes with that OS (in the bash shell I just type make install)