Closed GoogleCodeExporter closed 9 years ago
This would require significant restructuring of mockgen, and it's usually far
more useful to get the partial output for debugging purposes.
Original comment by dsymo...@golang.org
on 11 Oct 2011 at 10:43
I just found that this make it really difficult to write a make rule that
used mockgen, as subsequent calls to make would check the timestamp of the
incomplete file and asssume it was up to date.
Original comment by awre...@gmail.com
on 11 Oct 2011 at 2:20
Doesn't it work to do something like this?
mock_%.go : %.go
mockgen ... || rm $@
Original comment by dsymo...@golang.org
on 12 Oct 2011 at 1:48
Yes, but you would want to add `rm -f $@` for case when the file wasn't
actually created.
Original comment by awre...@gmail.com
on 12 Oct 2011 at 1:57
Original issue reported on code.google.com by
awre...@gmail.com
on 11 Oct 2011 at 6:48Attachments: