• Fam Zheng's avatar
    Makefile: Derive "PKGVERSION" from "git describe" by default · 67a1de0d
    Fam Zheng authored
    Currently, if not specified in "./configure", QEMU_PKGVERSION will be
    empty. Write a rule in Makefile to generate a value from "git describe"
    combined with a possible git tree cleanness suffix, and write into a new
        $ cat qemu-version.h
        #define QEMU_PKGVERSION "-v2.6.0-557-gd6550e9e-dirty"
    Include the header in .c files where the macro is referenced. It's not
    necessary to include it in all files, otherwise each time the content of
    the file changes, all sources have to be recompiled.
    Signed-off-by: 's avatarFam Zheng <famz@redhat.com>
    Message-Id: <1464774261-648-3-git-send-email-famz@redhat.com>
    Signed-off-by: 's avatarPaolo Bonzini <pbonzini@redhat.com>
qmp.c 18.8 KB