Signed-off-by: Pierre Habouzit <madcoder@debian.org>
add_custom_command(
OUTPUT ${_li}
MAIN_DEPENDENCY ${_abs}
- COMMAND ${madmutt_SOURCE_DIR}/tools/cpkg2c -h ${_abs} > ${_li}
+ COMMAND ${madmutt_SOURCE_DIR}/tools/cpkg2c -h ${_abs} > ${_li} || \(${RM} ${_li}; exit 1\)
COMMENT "Generating ${_li} from ${_abs}"
)
add_custom_command(
OUTPUT ${_c}
MAIN_DEPENDENCY ${_abs}
- COMMAND ${madmutt_SOURCE_DIR}/tools/cpkg2c -c ${_abs} > ${_c}
+ COMMAND ${madmutt_SOURCE_DIR}/tools/cpkg2c -c ${_abs} > ${_c} || \(${RM} ${_c}; exit 1\)
COMMENT "Generating ${_c} from ${_abs}"
)
list(APPEND ${_result} ${_li} ${_c})