mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
f99ca9e372
tool/ports/shortcut create symbolic link from 'contrib/<port-name>-<hash>' to contrib/<port-name> tool/ports/current print current contrib directory of port Fixes #1345.
26 lines
655 B
Makefile
Executable File
26 lines
655 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
#
|
|
# \brief Tool for updating symbolic links to ports
|
|
# \author Alexander Boettcher
|
|
# \date 2015-01-12
|
|
#
|
|
|
|
#
|
|
# 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) "--- create symbolic link from 'contrib/<port-name>-<hash>' to contrib/<port-name> ---"
|
|
@$(ECHO) "usage: shortcut <port-name>"
|
|
@$(ECHO)
|
|
|
|
$(TARGET):
|
|
$(VERBOSE)ln -snf $(PORT_DIR) $(CONTRIB_DIR)/$(PORT_NAME)
|