SVGHMI: update Makefile to pick all changes to any dependency svghmi
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Wed, 18 Mar 2020 09:37:26 +0100
branchsvghmi
changeset 2884 50b9832c51fc
parent 2883 8e3d130399b0
child 2885 f398896b7ebf
SVGHMI: update Makefile to pick all changes to any dependency
svghmi/Makefile
svghmi/widgets_common.ysl2
--- a/svghmi/Makefile	Wed Mar 18 09:16:14 2020 +0100
+++ b/svghmi/Makefile	Wed Mar 18 09:37:26 2020 +0100
@@ -12,7 +12,7 @@
 yml2path ?= $(abspath ../../yml2)
 
 ysl2files := gen_index_xhtml.ysl2
-ysl2includes := geometry.ysl2 hmi_tree.ysl2
+ysl2includes := $(filter-out $(ysl2files), $(wildcard *.ysl2))
 xsltfiles := $(patsubst %.ysl2, %.xslt, $(ysl2files))
 
 all:$(xsltfiles)
--- a/svghmi/widgets_common.ysl2	Wed Mar 18 09:16:14 2020 +0100
+++ b/svghmi/widgets_common.ysl2	Wed Mar 18 09:37:26 2020 +0100
@@ -1,3 +1,5 @@
+// widgets_common.ysl2
+
 in xsl decl labels(*ptr, name="defs_by_labels") alias call-template {
     with "hmi_element", "$hmi_element";
     with "labels"{text *ptr};