mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
eda0828ca0
A binary file may be a temporary Vim .swp file when examining contrib sources. The commit prevents build errors like .../repos/dde_linux/lib/mk/lxip_include.mk:29: target '.../x86_64/var/libcache/lxip_include/include/include/include/Binary' given more than once in the same rule .../repos/dde_linux/lib/mk/lxip_include.mk:29: target '.../x86_64/var/libcache/lxip_include/include/include/include/file' given more than once in the same rule ...
25 lines
723 B
Makefile
25 lines
723 B
Makefile
ifeq ($(called_from_lib_mk),yes)
|
|
|
|
QEMU_CONTRIB_DIR := $(call select_from_ports,qemu-usb)/src/lib/qemu
|
|
QEMU_EMUL_H := $(REP_DIR)/src/lib/qemu-usb/include/qemu_emul.h
|
|
|
|
#
|
|
# Determine the header files included by the contrib code. For each
|
|
# of these header files we create a symlink to 'qemu_emul.h'.
|
|
#
|
|
GEN_INCLUDES := $(shell grep -rIh "^\#include .*" $(QEMU_CONTRIB_DIR) |\
|
|
sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" | sort | uniq)
|
|
#
|
|
# Put Qemu headers in 'GEN_INC' dir
|
|
#
|
|
GEN_INC := $(shell pwd)/include
|
|
GEN_INCLUDES := $(addprefix $(GEN_INC)/,$(GEN_INCLUDES))
|
|
|
|
all: $(GEN_INCLUDES)
|
|
|
|
$(GEN_INCLUDES):
|
|
$(VERBOSE)mkdir -p $(dir $@)
|
|
$(VERBOSE)ln -s $(QEMU_EMUL_H) $@
|
|
|
|
endif
|