aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d/CMakeLists.txt
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2017-08-15 12:48:59 +0200
committerfulup <fulup.arfoll@iot.bzh>2017-08-15 12:48:59 +0200
commite8b7ffa70194d1cc3ef4cc52bb0ace9f133514cf (patch)
tree63670aff03ca38b0a1da102f23e7223997f5b1f3 /conf.d/project/lua.d/CMakeLists.txt
parent96f0057d65fbb90d9faa02a3ae4ae37b357094db (diff)
docall working with simple table
Diffstat (limited to 'conf.d/project/lua.d/CMakeLists.txt')
-rw-r--r--conf.d/project/lua.d/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/conf.d/project/lua.d/CMakeLists.txt b/conf.d/project/lua.d/CMakeLists.txt
index db54742..ecf1e6d 100644
--- a/conf.d/project/lua.d/CMakeLists.txt
+++ b/conf.d/project/lua.d/CMakeLists.txt
@@ -22,7 +22,7 @@
##################################################
PROJECT_TARGET_ADD(ctl-lua.d)
- file(GLOB XML_FILES "*.lua")
+ file(GLOB LUA_FILES "*.lua")
add_custom_target(${TARGET_NAME}
DEPENDS ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME}
@@ -30,11 +30,11 @@ PROJECT_TARGET_ADD(ctl-lua.d)
# check XML schema before pushing config
add_custom_command(
- DEPENDS ${XML_FILES}
+ DEPENDS ${LUA_FILES}
OUTPUT ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME}
- # COMMAND xmllint -schema ${XML_SCHEMA} ${XML_FILES} --noout (Fulup we miss this for JSON)
+ COMMAND ${LUA_COMPILER} ${LUA_FILES}
COMMAND mkdir -p ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME}
COMMAND touch ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME}
- COMMAND cp -r ${XML_FILES} ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME}
+ COMMAND cp -r ${LUA_FILES} ${PROJECT_PKG_BUILD_DIR}/${TARGET_NAME}
)