#!/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] " @echo @echo " -j prepare ports in parallel at a max, default is 1" @echo @echo " whitespace-separated list of ports" @echo TARGETS = $(sort $(MAKECMDGOALS)) .PHONY: $(TARGETS) $(TARGETS): @$(MAKE) -f $(GENODE_DIR)/tool/ports/mk/prepare_single_port.mk $@