]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Makefile.am
Account for old versions of Pygments
[lyx.git] / src / frontends / Makefile.am
index a87321f3ba7d2d5fe49f420efb40f6fbde80478b..862613a67f51964dded997125b30f6fcd9cac155 100644 (file)
@@ -1,44 +1,51 @@
 include $(top_srcdir)/config/common.am
 
-DISTCLEANFILES += -r qt2/Makefile qt2/.deps qt2/xforms/Makefile \
-       qt2/xforms/.deps qt2/moc/Makefile qt2/moc/.deps qt2/ui/Makefile \
-       qt2/ui/.deps qt2/ui/moc/Makefile qt2/ui/moc/.deps \
-       gnome/Makefile gnome/.deps
-
-SUBDIRS = controllers @FRONTEND@
-
-noinst_LTLIBRARIES = libfrontends.la
-
-LIBS += @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
-
-INCLUDES = $(FRONTEND_INCLUDES) -I$(srcdir)/..  $(SIGC_CFLAGS) $(BOOST_INCLUDES)
-
-libfrontends_la_LIBADD= @FRONTEND_GUILIB@ \
-       controllers/*.lo
-
-libfrontends_la_DEPENDENCIES = $(libfrontends_la_LIBADD)
-
-libfrontends_la_SOURCES=\
-       Alert.C \
-       Alert.h \
-       Alert_pimpl.h \
-       Dialogs.C \
-       Dialogs.h \
-       DialogBase.h \
-       FileDialog.h \
-       GUIRunTime.h \
-       Liason.C \
-       Liason.h \
-       Menubar.C \
-       Menubar.h \
-       Timeout.C \
-       Timeout.h \
-       Toolbar.C \
-       Toolbar.h
-
-EXTRA_DIST = xforms qt2 gnome
-
-dist-hook:
-       @cd $(distdir) ; \
-       rm -rf `find qt2 -name \*CVS\*`; \
-       rm -rf `find gnome -name \*CVS\*`
+SUBDIRS = $(FRONTENDS_SUBDIRS) .
+
+DIST_SUBDIRS = qt4 .
+
+noinst_LIBRARIES = liblyxfrontends.a
+
+AM_CPPFLAGS += -I$(srcdir)/.. \
+       $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES)
+
+liblyxfrontends_a_SOURCES = \
+       alert.h \
+       Application.h \
+       FontLoader.h \
+       FontMetrics.h \
+       Delegates.h \
+       KeyModifier.h \
+       KeySymbol.h \
+       Painter.h \
+       Clipboard.h \
+       Selection.h \
+       WorkArea.h \
+       WorkAreaManager.cpp \
+       WorkAreaManager.h \
+       mouse_state.h
+
+################################# Tests ################################
+
+EXTRA_DIST = \
+       CMakeLists.txt \
+       tests/CMakeLists.txt \
+       tests/test_biblio.cmake \
+       tests/test_biblio \
+       tests/regfiles/biblio
+
+TESTS = \
+       tests/test_biblio
+
+check_PROGRAMS = \
+       biblio
+
+biblio_LDADD = $(BOOST_LIBS) $(ICONV_LIBS) $(ZLIB_LIBS)
+biblio_SOURCES = \
+       tests/biblio.cpp \
+       tests/boost.cpp
+
+makeregfiles: ${check_PROGRAMS}
+       for all in ${check_PROGRAMS} ; do \
+               ./$$all > ${srcdir}/tests/regfiles/$$all ; \
+       done