Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you use Make as a task runner like in the article, please make sure that you're also declaring your tasks as .PHONY targets: https://www.gnu.org/software/make/manual/html_node/Phony-Tar...

Otherwise, the existence of a file or folder with the same name as your task ("test", for example) will stop that task from being run, which might be very annoying if you're using the Makefile as part of a script or CI or something where you won't notice the "Nothing to be done for..." message.



Oh, is that the actual reason it’s for?

IIRC the info pages just say that it is for targets that lack a file. This is way easier to remember.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: