-
Notifications
You must be signed in to change notification settings - Fork 7
/
core.deps.mk
37 lines (32 loc) · 1.09 KB
/
core.deps.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Adds a 'deps' target that will call all the targets in YP_DEPS_TARGETS.
#
# To add another deps target do
# YP_DEPS_TARGETS += \
# deps-for-something-else \
#
# ------------------------------------------------------------------------------
#
# Adds a 'deps/upgrade' target that will call all the targets in YP_DEPS_UPGRADE_TARGETS.
#
# To add another deps/upgrade target do
# YP_DEPS_UPGRADE_TARGETS += \
# deps-upgrade-for-something-else \
#
# ------------------------------------------------------------------------------
YP_DEPS_TARGETS += \
YP_DEPS_UPGRADE_TARGETS += \
# ------------------------------------------------------------------------------
.PHONY: deps
deps: ## Fetch dependencies.
[[ "$(words $(YP_DEPS_TARGETS))" = "0" ]] || { \
$(ECHO_DO) "Fetching dependencies..."; \
$(MAKE) --no-print-directory $(YP_DEPS_TARGETS); \
$(ECHO_DONE); \
}
.PHONY: deps/upgrade
deps/upgrade: ## Upgrade dependencies.
[[ "$(words $(YP_DEPS_UPGRADE_TARGETS))" = "0" ]] || { \
$(ECHO_DO) "Upgrade dependencies..."; \
$(MAKE) --no-print-directory $(YP_DEPS_UPGRADE_TARGETS); \
$(ECHO_DONE); \
}