On Wed, Mar 20, 2019, at 05:05, Lucio wrote: > What I just realised is that my Makefile/mkfile-foo isn't sufficient > to *do something* with such information, but at this point I'm willing > to cross that bridge when I come to it. For now, having a "go status > infernal/package", say, even if it provides a single reply: > "updated=yes", for example (someone here will think of a better > approach, no doubt) will be a useful start. Obviously, the command is > run in a directory other than the one being verified.
Make files are meant to check if one file is newer than another, not the output of a command. If you want to see if your dependencies have been updated or not, check if the file that contains those dependencies has been updated (eg. go.mod or Gopkg.toml). If you want to check if local files have been updated, list those local files. Something like this is a good start for a Go project (assuming you want to depend on all .go files in the project, which may or may not be a good assumption depending on the project). GOFILES!=find . -name '*.go' yourbinary: go.mod $(GOFILES) go build -o $@ —Sam -- 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. For more options, visit https://groups.google.com/d/optout.