Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Refactor Makefile targets to make it easier to add build tool deps#134

Merged
prymitive merged 1 commit intomasterfrom
prettybench
Jul 10, 2017
Merged

Refactor Makefile targets to make it easier to add build tool deps#134
prymitive merged 1 commit intomasterfrom
prettybench

Conversation

@prymitive
Copy link
Contributor

If I would add a new 'go get foo' line in the build/deps.ok target it wouldn't install anything since the file we touch at the end already exist. Split all 'go get foo' lines into dedicated targets and make build/deps.ok depend on it. This way when you add a new build time dependency make will be able to do the magic and just install what's missing.
I made those change to add github.com/cespare/prettybench, it ended up adding little value so I dropped it, but Makefile refactor still seems like a good idea

If I would add a new 'go get foo' line in the build/deps.ok target it wouldn't install anything since the file we touch at the end already exist. Split all 'go get foo' lines into dedicated targets and make build/deps.ok depend on it. This way when you add a new build time dependency make will be able to do the magic and just install what's missing.
I made those change to add github.com/cespare/prettybench, it ended up adding little value so I dropped it, but Makefile refactor still seems like a good idea
@prymitive prymitive merged commit 2339395 into master Jul 10, 2017
@prymitive prymitive deleted the prettybench branch July 10, 2017 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants