plcopen/Makefile
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Mar 2019 07:13:04 +0000
changeset 2533 e09e4b4caff1
parent 1936 b85b13b1c2ec
child 2627 3ba6a2d26507
permissions -rw-r--r--
Merged in masterschlumpf/beremiz/generate-button (pull request #38)

"Generate Prgram" button

Approved-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
#! gmake

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

all:$(xsltfiles)

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