summaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-demo
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-09 16:43:30 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-09 16:43:30 +0200
commit863526d4ab28091148a0466769b443624911006b (patch)
tree939d083be0fe32f24adf123903278e91098c79fe /CAN-binder/low-can-demo
parent098854d18568a2ea17f47a3711d3f74bdafb4c3e (diff)
Don't process rebuild webapp if it is already build
Change-Id: Ifd3a478035281ae81e2e8f33e904828716fb1213 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-demo')
-rw-r--r--CAN-binder/low-can-demo/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CAN-binder/low-can-demo/CMakeLists.txt b/CAN-binder/low-can-demo/CMakeLists.txt
index 6de2a25..136053b 100644
--- a/CAN-binder/low-can-demo/CMakeLists.txt
+++ b/CAN-binder/low-can-demo/CMakeLists.txt
@@ -24,8 +24,8 @@ PROJECT_TARGET_ADD(low-can-demo)
add_custom_command(OUTPUT dist.prod
DEPENDS ${TARGET_NAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- COMMAND npm install
- COMMAND gulp build-app-prod
+ COMMAND [ -d "dist.prod" ] || npm install
+ COMMAND [ -d "dist.prod" ] || gulp build-app-prod
COMMAND cp -r dist.prod ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(${TARGET_NAME} ALL DEPENDS dist.prod)