Am Mo., 23. Aug. 2021 um 18:48 Uhr schrieb jake...@gmail.com < jake6...@gmail.com>:
> On Sunday, August 22, 2021 at 11:11:23 PM UTC-4 jlfo...@berkeley.edu > wrote: > >> >> I've noticed that few, if any, Go programs use Makefiles. Is that because >> the overhead of using make is greater than the overhead of just always >> compiling and linking everything? >> > > Go had built in build caching. So it will not have to "always compile and > link everything." In addition, Go builds tend to be much, much faster than > most other compiled languages. As a result, Makefiles are only useful if > you have other operations to perform that are not part of the normal go > tooling. > > >> One piece of evidence for this is that the Go compiler leaves no >> artifacts, like object files, so as is make wouldn't fit into the current >> build method. >> > What are the alternatives to Makefile that are used by Go developers? Please comment :-) I know Make from old C/C++ times. Therefore, my picture is that it is not very portable and requires for quite many operations the usage of external tools that again differ between the platforms. Basically Makefiles are somehow enhanced shell scripts (Linux/Unix) or batch files (Windows). Currently, at work I deal a lot with Maven, that is a bit too Java -oriented in spite of being capable in principle to build and compile other things too. Another, issue is the XML syntax that's makes editing without tool support very hard. Gradle would be another candidate. I am just began to explore it. It's a bit like Maven with human syntax, but lacks again on lifecycle support that I like with Maven. BR, Roland > >> Cordially, >> Jon Forrest >> >> >> -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/449781bc-1605-4acf-b03c-dab98cf710efn%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/449781bc-1605-4acf-b03c-dab98cf710efn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2B8p0G2dZGsL6RXTvc0m2_8_9MVUt_R1U3JFdhdHm8v3PwywNw%40mail.gmail.com.