# This file is part of the Coral project.
# Please read the copyright notice in the LICENSE file.
UI_FILES = $(wildcard *.ui)
.PHONY: clean first_rule
PYUIC=pyuic

first_rule: $(patsubst %.ui, %.py, $(UI_FILES))

%.py: %.ui
	$(PYUIC) $^ > $@.tmp
	python ../../../build/fixPyuic.py $@.tmp > $@
	rm $@.tmp                                

clean:	
	-rm -f *.pyc
	-rm -f $(patsubst %.ui, %.py, $(UI_FILES))
