summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-05-10 21:16:49 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-05-10 21:16:49 (GMT)
commit14375a38ff3c8c2054ac4e7b6131fc5336813999 (patch)
treee8a858c0834b2d2316cbe3fed3563015a0b17f3f /Makefile
parentd632bcd7cbe1a0e9ee416fb56a4b3f8b7e0ae585 (diff)
downloadmxe-14375a38ff3c8c2054ac4e7b6131fc5336813999.zip
mxe-14375a38ff3c8c2054ac4e7b6131fc5336813999.tar.gz
mxe-14375a38ff3c8c2054ac4e7b6131fc5336813999.tar.bz2
show-*deps-%: check if package exists before attempting to show deps
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 18 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 6413788..a6c74de 100644
--- a/Makefile
+++ b/Makefile
@@ -410,25 +410,31 @@ all-filtered: $(filter-out $(call RECURSIVELY_EXCLUDED_PKGS),$(PKGS))
# print a list of upstream dependencies and downstream dependents
show-deps-%:
- $(call SET_CLEAR,PKGS_VISITED)
- $(info $* upstream dependencies:$(newline)\
- $(call WALK_UPSTREAM,$*)\
- $(newline)$(newline)$* downstream dependents:$(newline)\
- $(call WALK_DOWNSTREAM,$*))
- @echo
+ $(if $(call set_is_member,$*,$(PKGS)),\
+ $(call SET_CLEAR,PKGS_VISITED)\
+ $(info $* upstream dependencies:$(newline)\
+ $(call WALK_UPSTREAM,$*)\
+ $(newline)$(newline)$* downstream dependents:$(newline)\
+ $(call WALK_DOWNSTREAM,$*))\
+ @echo,\
+ $(error package $* not found in index.html))
# show upstream dependencies and downstream dependents separately
# suitable for usage in shell with: `make show-downstream-deps-foo`
# @echo -n suppresses the "Nothing to be done" without an eol
show-downstream-deps-%:
- $(call SET_CLEAR,PKGS_VISITED)
- $(info $(call WALK_DOWNSTREAM,$*))
- @echo -n
+ $(if $(call set_is_member,$*,$(PKGS)),\
+ $(call SET_CLEAR,PKGS_VISITED)\
+ $(info $(call WALK_DOWNSTREAM,$*))\
+ @echo -n,\
+ $(error package $* not found in index.html))
show-upstream-deps-%:
- $(call SET_CLEAR,PKGS_VISITED)
- $(info $(call WALK_UPSTREAM,$*))
- @echo -n
+ $(if $(call set_is_member,$*,$(PKGS)),\
+ $(call SET_CLEAR,PKGS_VISITED)\
+ $(info $(call WALK_UPSTREAM,$*))\
+ @echo -n,\
+ $(error package $* not found in index.html))
.PHONY: clean
clean: