# Makefile to prepare the qt4 gui directory for compilation. This is called
# by "configure"
# Convert the uic files from qt3 to qt4. 

UIFILES = advsearch.ui preview.ui rclmain.ui sort.ui spell.ui \
     ssearchb.ui uiprefs.ui viewaction.ui

all: always $(UIFILES)

advsearch.ui : ../qtgui/advsearch.ui 
	uic3 -convert ../qtgui/advsearch.ui > advsearch.ui 
preview.ui : ../qtgui/preview.ui 
	uic3 -convert ../qtgui/preview.ui > preview.ui 
rclmain.ui : ../qtgui/rclmain.ui 
	uic3 -convert ../qtgui/rclmain.ui > rclmain.ui 
sort.ui : ../qtgui/sort.ui 
	uic3 -convert ../qtgui/sort.ui > sort.ui 
spell.ui : ../qtgui/spell.ui 
	uic3 -convert ../qtgui/spell.ui > spell.ui 
ssearchb.ui : ../qtgui/ssearchb.ui 
	uic3 -convert ../qtgui/ssearchb.ui > ssearchb.ui 
uiprefs.ui : ../qtgui/uiprefs.ui 
	uic3 -convert ../qtgui/uiprefs.ui > uiprefs.ui 
viewaction.ui: ../qtgui/viewaction.ui
	uic3 -convert ../qtgui/viewaction.ui> viewaction.ui

# Link the images
always: 
	rm -f images
	ln -s ../qtgui/images .

clean:
	rm -f $(UIFILES)
