📝 Edit page
➕ Add page
Internal calls
Run before first step
Run make foo
first, whenever make bar
is run.
foo:
@echo 'Foo'
bar: foo
@echo 'Bar'
$ make bar
Foo
Bar
Run after first step
Run bar
within foo
:
foo:
@echo 'Foo'
bar:
@echo 'Bar'
$(MAKE) foo
$ make bar
Bar
Foo
You can do either:
bar:
make foo
Or this, which is more common and preferred.
bar:
$(MAKE) foo