Start New Discussion within our Software Development Community

Hi all,

I would like to call a makefile with a particular variable and value so that the variable is used to make decisions inside the makefile.


You can use an environment variable:

$cat Makefile

        @echo ${MY_VAR}

Then you can do something like:

$ MY_VAR="DATA" make
This article has been dead for over six months. Start a new discussion instead.