GnuMake how to make fake target run more than once?
2 answers
Yuk! Do not do it. Don't rely on implicit target ordering - it changes completely when you use make -j
. Make your order explicit. If you really have to clean between assemblies, then something like:
.PHONY: everything
everything:
${MAKE} clean
${MAKE} test
${MAKE} clean
${MAKE} build
Again, recursive make is pretty smelly, but your best bet in this case.
+3
source to share