mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
d7440a8b1c
If this file is called from a Makefile via ! $(shell <path>/tool/ports/current qt5-host) 'shell' will return "Entering directory '' <path-to-libc> Leaving directory '' Stop.", and thus, producing multiple targets in the 'tool_chain_qt5' case. issue #4725
26 lines
588 B
Makefile
Executable File
26 lines
588 B
Makefile
Executable File
#!/usr/bin/make -sf
|
|
|
|
#
|
|
# \brief Tool for printing current contrib directory of port
|
|
# \author Christian Helmuth
|
|
# \date 2015-01-07
|
|
#
|
|
|
|
#
|
|
# Determine Genode base directory based on the known location of the
|
|
# 'create_builddir' tool within the Genode source tree
|
|
#
|
|
GENODE_DIR := $(realpath $(dir $(MAKEFILE_LIST))/../..)
|
|
|
|
include $(GENODE_DIR)/tool/ports/mk/front_end.inc
|
|
include $(GENODE_DIR)/tool/ports/mk/check_port_arg.inc
|
|
|
|
usage:
|
|
@$(ECHO)
|
|
@$(ECHO) "--- print current contrib directory of port ---"
|
|
@$(ECHO) "usage: current <port-name>"
|
|
@$(ECHO)
|
|
|
|
$(TARGET):
|
|
@$(ECHO) $(PORT_DIR)
|