equal
deleted
inserted
replaced
10 # make yml2path=path/to/yml/dir |
10 # make yml2path=path/to/yml/dir |
11 |
11 |
12 yml2path ?= $(abspath ../../yml2) |
12 yml2path ?= $(abspath ../../yml2) |
13 |
13 |
14 ysl2files := gen_index_xhtml.ysl2 |
14 ysl2files := gen_index_xhtml.ysl2 |
|
15 ysl2includes := geometry.ysl2 hmi_tree.ysl2 |
15 xsltfiles := $(patsubst %.ysl2, %.xslt, $(ysl2files)) |
16 xsltfiles := $(patsubst %.ysl2, %.xslt, $(ysl2files)) |
16 |
17 |
17 all:$(xsltfiles) |
18 all:$(xsltfiles) |
18 |
19 |
19 %.xslt: %.ysl2 svghmi.js ../yslt_noindent.yml2 |
20 %.xslt: %.ysl2 $(ysl2includes) svghmi.js ../yslt_noindent.yml2 |
20 $(yml2path)/yml2c -I $(yml2path):../ $< -o $@.tmp |
21 $(yml2path)/yml2c -I $(yml2path):../ $< -o $@.tmp |
21 xmlstarlet fo $@.tmp > $@ |
22 xmlstarlet fo $@.tmp > $@ |
22 rm $@.tmp |
23 rm $@.tmp |
23 |
24 |
24 clean: |
25 clean: |