2014-05-07 21:47:20 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
#
|
2016-02-03 16:48:54 +00:00
|
|
|
# \brief Tool for preparing and updating ports
|
|
|
|
# \author Martin Stein
|
|
|
|
# \date 2016-02-03
|
2014-05-07 21:47:20 +00:00
|
|
|
#
|
|
|
|
|
2016-02-03 16:48:54 +00:00
|
|
|
ifndef VERBOSE
|
|
|
|
MAKEFLAGS += --no-print-directory
|
2014-05-07 21:47:20 +00:00
|
|
|
endif
|
|
|
|
|
2016-02-03 16:48:54 +00:00
|
|
|
export GENODE_DIR := $(realpath $(dir $(MAKEFILE_LIST))/../..)
|
2014-05-07 21:47:20 +00:00
|
|
|
|
2016-02-03 16:48:54 +00:00
|
|
|
usage:
|
|
|
|
@echo
|
|
|
|
@echo "Tool for preparing and updating ports"
|
|
|
|
@echo
|
|
|
|
@echo "usage:"
|
|
|
|
@echo
|
|
|
|
@echo " $(notdir $(MAKEFILE_LIST)) [-j<n>] <ports>"
|
|
|
|
@echo
|
|
|
|
@echo " -j<n> prepare <n> ports in parallel at a max, default is 1"
|
|
|
|
@echo
|
|
|
|
@echo " <ports> whitespace-separated list of ports"
|
|
|
|
@echo
|
|
|
|
|
|
|
|
TARGETS = $(sort $(MAKECMDGOALS))
|
|
|
|
|
|
|
|
.PHONY: $(TARGETS)
|
|
|
|
|
|
|
|
$(TARGETS):
|
|
|
|
@$(MAKE) -f $(GENODE_DIR)/tool/ports/mk/prepare_single_port.mk $@
|