I have a C++ project which contains a generated file that all the other C++ files depend on. I\'m trying to force that file to be generated and compiled before any other com
If you're sure that's really what you want, here's one way to do it: have a rule for a dummy file which the makefile will include.
include
.PHONY: dummy dummy: # generate the file here -include dummy
No matter what target you specify, Make will first run the dummy rule, then restart itself.
dummy