<< 14/15 >>
First Last

Target specific variables

Things are more complicated with dependencies:

  X:=foo
  foo:
  	@echo $(X)
  bar: foo
  	@echo $(X)
  bar: X:= bar

I wonder who want this.

  $ make foo
  foo
  $ make bar
  bar
  bar