makefilegnucommand-line-arguments

Passing additional variables from command line to make


Can I pass variables to a GNU Makefile as command line arguments? In other words, I want to pass some arguments which will eventually become variables in the Makefile.


Solution

  • You have several options to set up variables from outside your makefile: