plcopen/Makefile
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 05 Sep 2016 16:47:34 +0300
changeset 1521 e44950d4c218
parent 1353 fc7aab64589b
child 1936 b85b13b1c2ec
permissions -rw-r--r--
fix highlighting input/outputs in function call in ST, if comment section is placed
inside call.

For example:

PackOutputs(
W4 := OUT1,
W5 := OUT2,
W6 := OUT3,
W7 := OUT4,
W8 := OUT5 (* comment inside call *),
W9 := OUT6,
W10 := OUT7,
W11 := OUT8);
#! gmake

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

all:$(xsltfiles)

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