plcopen/Makefile
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 11 Apr 2017 19:09:34 +0300
changeset 1678 55b6db51eb63
parent 1353 fc7aab64589b
child 1936 b85b13b1c2ec
permissions -rw-r--r--
fix clearing project name on opening project properties page.

The problem exists only on Windows with wxPython-3.0.

This happens because callback for EVT_KILL_FOCUS for a first text
control (project name) is called just after creating page with project
properties. It happens before initializing text controls from PLCController.
#! 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)