equal
deleted
inserted
replaced
|
1 #! gmake |
|
2 |
|
3 # Makefile to generate XSLT stylesheets from ysl2 files in the same directory |
|
4 |
|
5 # This uses YML2. |
|
6 # hg clone https://pep.foundation/dev/repos/yml2/ |
|
7 |
|
8 # It should be just fine if yml2 is cloned just asside beremiz |
|
9 # otherwise, point yml2path to yml2 source directory |
|
10 # make yml2path=path/to/yml/dir |
|
11 |
|
12 yml2path ?= $(abspath ../../yml2) |
|
13 |
|
14 ysl2files := gen_index_xhtml.ysl2 gen_dnd_widget_svg.ysl2 analyse_widget.ysl2 |
|
15 ysl2includes := $(filter-out $(ysl2files), $(wildcard *.ysl2)) |
|
16 xsltfiles := $(patsubst %.ysl2, %.xslt, $(ysl2files)) |
|
17 |
|
18 all:$(xsltfiles) |
|
19 |
|
20 %.xslt: %.ysl2 $(ysl2includes) svghmi.js ../yslt_noindent.yml2 |
|
21 $(yml2path)/yml2c -I $(yml2path):../ $< -o $@.tmp |
|
22 xmlstarlet fo $@.tmp > $@ |
|
23 rm $@.tmp |
|
24 |
|
25 clean: |
|
26 rm -f $(xsltfiles) |