]> git.proxmox.com Git - qemu.git/blobdiff - rules.mak
Documentation: Improve command line help for -device option
[qemu.git] / rules.mak
index 9bcf9af95f5f790d20f3ea9b22f259f2db2042cd..5941b73eb5a7fac761bafb5f72783e7b4f59177e 100644 (file)
--- a/rules.mak
+++ b/rules.mak
@@ -39,6 +39,9 @@ quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))
 cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \
               >/dev/null 2>&1 && echo OK), $2, $3)
 
+VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi
+set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES), $(eval vpath $(PATTERN) $1)))
+
 # Generate timestamp files for .h include files
 
 %.h: %.h-timestamp