BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
BUILT_SOURCES += $(MOCEDFILES)
-######################### Translation #############################
+######################### Qt stuff #############################
# Use _() for localization instead of tr() or trUtf8()
UIC4FLAGS=-tr lyx::qt_
%_moc.cpp: %.h
$(MOC4) -o $@ $<
+Resources.qrc: Makefile
+ echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@
+ find $(top_srcdir)/lib/images -name '*.png' \
+ | sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
+ >> $@
+ echo "</qresource></RCC>" >> $@
+
+Resources.cpp: Resources.qrc
+ rcc $< -o $@
+
+
######################### LIBRARIES #############################
noinst_LTLIBRARIES = liblyxqt4.la
-I$(top_srcdir)/src/frontends/controllers
SOURCEFILES = \
+ Resources.cpp \
Action.cpp \
alert_pimpl.cpp \
BulletsModule.cpp \