Do not leave temporary files when invoking gen_doc.py. (#129)
This commit is contained in:
parent
ade694a1e9
commit
1d5adc555d
|
@ -4,17 +4,17 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc
|
||||||
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/gen_doc.py
|
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/gen_doc.py
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen_doc.py)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen_doc.py)
|
||||||
|
|
||||||
# Copy the generated files to respective destinations:
|
# Move the generated files to respective destinations:
|
||||||
# ONNXOps.td.inc -> src/Dialect/ONNX/ONNXOps.td.inc
|
# ONNXOps.td.inc -> src/Dialect/ONNX/ONNXOps.td.inc
|
||||||
add_custom_target(OMONNXOpsTableGenIncGen
|
add_custom_target(OMONNXOpsTableGenIncGen
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E rename
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc
|
${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc
|
||||||
${ONNX_MLIR_SRC_ROOT}/src/Dialect/ONNX/ONNXOps.td.inc
|
${ONNX_MLIR_SRC_ROOT}/src/Dialect/ONNX/ONNXOps.td.inc
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc)
|
||||||
|
|
||||||
# OpBuildTable.inc -> src/Builder/OpBuildTable.inc
|
# OpBuildTable.inc -> src/Builder/OpBuildTable.inc
|
||||||
add_custom_target(OMONNXOpsBuildTableIncGen
|
add_custom_target(OMONNXOpsBuildTableIncGen
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E rename
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/OpBuildTable.inc
|
${CMAKE_CURRENT_SOURCE_DIR}/OpBuildTable.inc
|
||||||
${ONNX_MLIR_SRC_ROOT}/src/Builder/OpBuildTable.inc
|
${ONNX_MLIR_SRC_ROOT}/src/Builder/OpBuildTable.inc
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/OpBuildTable.inc)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/OpBuildTable.inc)
|
||||||
|
@ -29,17 +29,17 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/MLONNXOps.td.inc
|
||||||
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/gen_doc.py --domain="ONNX_ML"
|
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/gen_doc.py --domain="ONNX_ML"
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen_doc.py)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen_doc.py)
|
||||||
|
|
||||||
# Copy the generated files to respective destinations:
|
# Move the generated files to respective destinations:
|
||||||
# ONNXOps.td.inc -> src/Dialect/ONNX/ONNXOps.td.inc
|
# MLONNXOps.td.inc -> src/Dialect/MLONNX/MLONNXOps.td.inc
|
||||||
add_custom_target(OMMLONNXOpsTableGenIncGen
|
add_custom_target(OMMLONNXOpsTableGenIncGen
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E rename
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/MLONNXOps.td.inc
|
${CMAKE_CURRENT_SOURCE_DIR}/MLONNXOps.td.inc
|
||||||
${ONNX_MLIR_SRC_ROOT}/src/Dialect/MLONNX/MLONNXOps.td.inc
|
${ONNX_MLIR_SRC_ROOT}/src/Dialect/MLONNX/MLONNXOps.td.inc
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/MLONNXOps.td.inc)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/MLONNXOps.td.inc)
|
||||||
|
|
||||||
# OpBuildTable.inc -> src/Builder/OpBuildTable.inc
|
# MLOpBuildTable.inc -> src/Builder/MLOpBuildTable.inc
|
||||||
add_custom_target(OMMLONNXOpsBuildTableIncGen
|
add_custom_target(OMMLONNXOpsBuildTableIncGen
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E rename
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/MLOpBuildTable.inc
|
${CMAKE_CURRENT_SOURCE_DIR}/MLOpBuildTable.inc
|
||||||
${ONNX_MLIR_SRC_ROOT}/src/Builder/MLOpBuildTable.inc
|
${ONNX_MLIR_SRC_ROOT}/src/Builder/MLOpBuildTable.inc
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/MLOpBuildTable.inc)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/MLOpBuildTable.inc)
|
||||||
|
|
Loading…
Reference in New Issue