From 1435f4c7f73a51e2a672287424dd0464726a0943 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 9 May 2017 13:20:38 +0200 Subject: Update template with references. Change-Id: Ic575adc4c8815f41a02c32d9835332cc2608d513 Signed-off-by: Romain Forlot --- templates/html5/app/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/html5/app') diff --git a/templates/html5/app/CMakeLists.txt b/templates/html5/app/CMakeLists.txt index 625e93c..b41c0da 100644 --- a/templates/html5/app/CMakeLists.txt +++ b/templates/html5/app/CMakeLists.txt @@ -23,8 +23,8 @@ PROJECT_TARGET_ADD(html5-app) 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) -- cgit 1.2.3-korg