plcopen/Makefile
author Edouard Tisserant <edouard@beremiz.fr>
Fri, 06 Dec 2024 15:48:54 +0100 (3 months ago)
changeset 4066 e894ff2a2584
parent 2627 3ba6a2d26507
permissions -rw-r--r--
py_ext: CSV Writer output FB interface: ERROR and RESULT are valid when ACK is TRUE.

+ updated svghmi_csv_json_img_table accordingly
#! gmake

# Makefile to generate XSLT stylesheets from ysl2 files in the same directory

# This uses YML2. 
#   hg clone https://pep.foundation/dev/repos/yml2/

# It should be just fine if yml2 is cloned just asside beremiz
# otherwise, point yml2path to yml2 source directory
#   make yml2path=path/to/yml/dir

yml2path ?= $(abspath ../../yml2)

ysl2files := $(wildcard *.ysl2)
xsltfiles := $(patsubst %.ysl2, %.xslt, $(ysl2files))

all:$(xsltfiles)

%.xslt: %.ysl2 ../yslt_noindent.yml2
	$(yml2path)/yml2c -I $(yml2path):../ $< -o $@.tmp
	xmlstarlet fo $@.tmp > $@
	rm $@.tmp
	
clean:
	rm -f $(xsltfiles)