# This file is part of the Coral project.
# Please read the copyright notice in the LICENSE file.
#UI_FILES:=coral/lgen/pegen/unittests/
PEGEN:=../../lgen/pegen/pegen.py
FIELDHANDLER:=../../lgen/pegen/fieldhandler.py
ESMD_FILE:=CONSTRAINT10_PE.xml
PYTHON=python

all: propertyeditors.py


propertyeditors.py: $(PEGEN) $(ESMD_FILE) $(FIELDHANDLER) PythonConstraintPE.ui
	$(PYTHON) $(PEGEN) -u ./ --license -p "coral.addins.constraint" $(ESMD_FILE) /
	# Trigger fixing of the .py files
	touch PythonConstraintPE.ui QueryScriptConstraintPE.ui
	UI_FILES="PythonConstraintPE.ui QueryScriptConstraintPE.ui" make -e -f ../../modeler/dlg/makefile
#	sed -i s/propertyeditors.BindConstraintsEditor/extendedEditors.ExtendedBindConstraintsEditor/ propertyeditors.mnf.xmi
#	sed -i s/propertyeditors.PythonConstraintEditor/extendedEditors.ExtendedPythonConstraintEditor/ propertyeditors.mnf.xmi

$(ESMD_FILE):

$(FIELDHANDLER):

clean:
	-rm -f propertyeditors.py
	-rm -f propertyeditors.mnf.xmi
