From 22aa4cbf925117aa02e358a99e44ced24c88f34a Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Sat, 20 Jun 2020 03:04:42 +0200 Subject: [PATCH] Build: rename `image` target => `qemu-image` Also add a new `image` target which is just an alias to `qemu-image`. This makes the CMakeLists.txt file more readable in my opinion. --- CMakeLists.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af6e0b1c191..6ef9c16dc48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,17 +12,19 @@ set(CMAKE_INSTALL_MESSAGE NEVER) enable_testing() -add_custom_target(image - COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-qemu.sh - BYPRODUCTS ${CMAKE_BINARY_DIR}/_disk_image - USES_TERMINAL -) - add_custom_target(run COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh USES_TERMINAL ) +add_custom_target(image + DEPENDS qemu-image +) +add_custom_target(qemu-image + COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-qemu.sh + BYPRODUCTS ${CMAKE_BINARY_DIR}/_disk_image + USES_TERMINAL +) add_custom_target(grub-image COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-grub.sh BYPRODUCTS ${CMAKE_BINARY_DIR}/grub_disk_image