Here is a nice post on how to define makefiles for a go project and actually teaching you some makefile constructs:
https://sahilm.com/makefiles-for-golang/
https://sahilm.com/makefiles-for-golang/