genode/tool/ports/prepare_port

34 lines
668 B
Plaintext
Raw Normal View History

#!/usr/bin/make -f
#
# \brief Tool for preparing and updating ports
# \author Martin Stein
# \date 2016-02-03
#
ifndef VERBOSE
MAKEFLAGS += --no-print-directory
endif
export GENODE_DIR := $(realpath $(dir $(MAKEFILE_LIST))/../..)
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 $@