summaryrefslogtreecommitdiffstats
path: root/templates/hybrid-html5/app
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-09 13:20:38 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:20 +0200
commit1435f4c7f73a51e2a672287424dd0464726a0943 (patch)
tree3df57c69b6cbf5e78d26301ad249bc8b5834d1ac /templates/hybrid-html5/app
parent89ec4ab1ecbe8547bf58b8ae155ac3008e9b73fd (diff)
Update template with references.
Change-Id: Ic575adc4c8815f41a02c32d9835332cc2608d513 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'templates/hybrid-html5/app')
-rw-r--r--templates/hybrid-html5/app/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/hybrid-html5/app/CMakeLists.txt b/templates/hybrid-html5/app/CMakeLists.txt
index b4019c7..ec6f6d8 100644
--- a/templates/hybrid-html5/app/CMakeLists.txt
+++ b/templates/hybrid-html5/app/CMakeLists.txt
@@ -23,8 +23,8 @@ PROJECT_TARGET_ADD(hybrid-html5-example)
add_custom_command(OUTPUT dist.prod
DEPENDS ${TARGET_NAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- COMMAND npm install
- COMMAND gulp widget-config-prod
+ COMMAND [ -d dist.prod ] && npm install
+ COMMAND [ -d dist.prod ] && gulp widget-config-prod
COMMAND cp -r dist.prod ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(${TARGET_NAME} ALL DEPENDS dist.prod)