# HG changeset patch
# User Laurent Bessard
# Date 1381392236 -7200
# Node ID fc7aab64589b4b7bb82284ab5793de4483b58534
# Parent  9ec4ac8e29551f879e7f8818e1ecf6ecc5c78b90
Added makefile for generating xslt stylesheet from ysl2 files

diff -r 9ec4ac8e2955 -r fc7aab64589b plcopen/Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plcopen/Makefile	Thu Oct 10 10:03:56 2013 +0200
@@ -0,0 +1,15 @@
+#! 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)
\ No newline at end of file