Last active
March 31, 2016 07:24
-
-
Save boxdot/471699674b26e57c8da4317b8a96a26b to your computer and use it in GitHub Desktop.
Use `make` to maintain dependencies.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: build-deps dep-a dep-b | |
build-deps: dep-a dep-b | |
vendor: | |
mkdir -p vendor | |
vendor/.last-build: deps.mk | |
make build-deps | |
touch vendor/.last-build | |
dep-a: COMMIT = 1 | |
dep-a: vendor | |
mkdir -p vendor/dep-a | |
touch vendor/dep-a/$(COMMIT) | |
dep-b: COMMIT = 2 | |
dep-b: vendor | |
mkdir -p vendor/dep-b | |
touch vendor/dep-b/$(COMMIT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all | |
all: vendor/.last-build | |
include deps.mk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment