News for hackers. Stuff that matters.
Re:Using Makefile(s) for Go by fragmede on Thursday December 12, 2019 @02:36AM (#21770011)
I'm more confused as to why use .PHONY in so many places. Golang builds from .go files whos modification times are changed when written to, same as .c and .cpp files, so make is able to know when the go compiler needs to be called, or not.
Re:Using Makefile(s) for Go by yencabulator on Wednesday December 18, 2019 @02:17PM (#21828233)
Make absolutely does not understand all the scenarios for rebuild, and go build has much more complicated logic than that. For one, it's content-based not mtime-based. For another, a command needs rebuild if any of its dependencies change, not just its own source file. Make absolutely does not get that right for Go.