# 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:=XMIDI20_PE.xml
PYTHON=python

all: propertyeditors.py


propertyeditors.py: $(PEGEN) $(ESMD_FILE) $(FIELDHANDLER)
	$(PYTHON) $(PEGEN) --license -p "coral.addins.XMIDI20" $(ESMD_FILE) /
	sed -i s/propertyeditors.DiagramElementEditor/extendededitors.ExtendedDiagramElementEditor/ propertyeditors.mnf.xmi
	sed -i s/propertyeditors.ContainedEditor/extendededitors.ExtendedContainedEditor/ propertyeditors.mnf.xmi

$(ESMD_FILE):

$(FIELDHANDLER):

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