]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/ui/Makefile.am
fix up build (also need patch sent to list), bring back doc/par dialogs,
[lyx.git] / src / frontends / qt2 / ui / Makefile.am
1 AUTOMAKE_OPTIONS = foreign 1.4
2 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
3 noinst_LTLIBRARIES = libqt2ui.la
4 BOOST_INCLUDES = -I$(top_srcdir)/boost
5 INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ -I$(top_srcdir)/src/frontends/qt2/ \
6         ${SIGC_CFLAGS} ${FRONTEND_INCLUDES} $(BOOST_INCLUDES) \
7         -I$(top_srcdir)/src/frontends/controllers
8 AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
9 ETAGS_ARGS = --lang=c++
10 SUBDIRS=. moc
11
12 include ../Makefile.dialogs
13
14 DISTCLEANFILES = $(UIDIALOGS) *.orig *.rej *~ *.bak core
15
16 libqt2ui_la_SOURCES = $(UIDIALOGS)
17
18 libqt2ui.la: $(libqt2ui_la_OBJECTS) $(libqt2ui_la_DEPENDENCIES)
19
20 # a pattern to change tr() to _()
21
22 SED=sed
23 SEDREPLACETR=s,[^A-Za-z]tr[ ]*(,_(,g
24 SEDREMOVEEMPTY=s,_[ ]*([ ]*""[ ]*),"",g
25  
26 QAskForTextDialog.h: QAskForTextDialog.ui
27         $(UIC) $< -o $@
28 QAskForTextDialog.C: QAskForTextDialog.h QAskForTextDialog.ui
29         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
30  
31 %Base.h: %.ui
32         $(UIC) $< -o $@
33 %Base.C: %Base.h %.ui
34         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@