diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-09 10:43:07 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:47 +0200 |
commit | faa9287ae5ba0f970bbfb2c5737738cde9d76971 (patch) | |
tree | 192dac1062210209af95be21ad54f222d90abd8a | |
parent | 44ae8512e77f5e9becbd7fcf0935037f65d6d5ab (diff) |
Added a target to build an archive from git repo
Change-Id: If6f491f7bf8e3e7a29b9c9db369126dc550318c3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | cmake/common.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake index 941e721..d55f907 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -406,5 +406,12 @@ macro(project_closing_msg) endif() endmacro() -# Add RSYSTARGET +# Add RSYNCTARGET remote_targets_populate() + +add_custom_command(OUTPUT ${PROJECT_PKG_ENTRY_POINT}/${PROJECT_NAME}_${PROJECT_VERSION}.orig.tar.gz +DEPENDS ${PROJECT_TARGETS} + COMMAND git --git-dir=${CMAKE_CURRENT_SOURCE_DIR}/.git archive --format=tar.gz --prefix=${PROJECT_NAME}-${PROJECT_VERSION}/ HEAD -o ${PROJECT_PKG_ENTRY_POINT}/${PROJECT_NAME}_${PROJECT_VERSION}.orig.tar.gz +) + +add_custom_target(archive DEPENDS ${PROJECT_PKG_ENTRY_POINT}/${PROJECT_NAME}_${PROJECT_VERSION}.orig.tar.gz) |