Published on

Makefile - target is up to date error

Authors

When trying to run a target in one of my makefiles I got an error like target is up to date and the target did not run. For example I ran make bootstrap where I have a target named bootstrap. This error ended up being caused by my project also having a folder called bootstrap. There are 2 ways to fix this:

  1. Renamed the folder or rename the target
  2. Add the following line to the beginning of your make file (where targets that have a folder with the same name are listed): .PHONY: bootstrap