+HEADERFILESINSETS = \
+ insets/ExternalSupport.h \
+ insets/ExternalTemplate.h \
+ insets/ExternalTransforms.h \
+ insets/RenderBase.h \
+ insets/RenderButton.h \
+ insets/RenderGraphic.h \
+ insets/RenderPreview.h \
+ insets/Inset.h \
+ insets/InsetArgument.h \
+ insets/InsetBibitem.h \
+ insets/InsetBibtex.h \
+ insets/InsetBox.h \
+ insets/InsetBranch.h \
+ insets/InsetCaption.h \
+ insets/InsetCaptionable.h \
+ insets/InsetCitation.h \
+ insets/InsetCode.h \
+ insets/InsetCollapsable.h \
+ insets/InsetCommand.h \
+ insets/InsetCommandParams.h \
+ insets/InsetERT.h \
+ insets/InsetExternal.h \
+ insets/InsetFlex.h \
+ insets/InsetFloat.h \
+ insets/InsetFoot.h \
+ insets/InsetFloatList.h \
+ insets/InsetFootlike.h \
+ insets/InsetGraphicsParams.h \
+ insets/InsetGraphics.h \
+ insets/InsetHyperlink.h \
+ insets/InsetInclude.h \
+ insets/InsetIndex.h \
+ insets/InsetInfo.h \
+ insets/InsetIPA.h \
+ insets/InsetIPAMacro.h \
+ insets/InsetPreview.h \
+ insets/InsetLabel.h \
+ insets/InsetLayout.h \
+ insets/InsetLine.h \
+ insets/InsetListings.h \
+ insets/InsetListingsParams.h \
+ insets/InsetMarginal.h \
+ insets/InsetNewline.h \
+ insets/InsetNewpage.h \
+ insets/InsetNomencl.h \
+ insets/InsetNote.h \
+ insets/InsetPhantom.h \
+ insets/InsetQuotes.h \
+ insets/InsetRef.h \
+ insets/InsetScript.h \
+ insets/InsetSeparator.h \
+ insets/InsetSpace.h \
+ insets/InsetSpecialChar.h \
+ insets/InsetTabular.h \
+ insets/InsetText.h \
+ insets/InsetTOC.h \
+ insets/InsetVSpace.h \
+ insets/InsetWrap.h
+
+# insets/InsetList.cpp \
+# insets/InsetList.h \
+# insets/InsetSection.h \
+# insets/InsetSection.cpp
+
+lyxinsets.cpp:
+ @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
+
+if MONOLITHIC_INSETS
+
+BUILT_SOURCES += lyxinsets.cpp
+CLEANFILES += lyxinsets.cpp
+
+liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
+
+else
+
+liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
+
+endif
+
+
+############################## Tests ##################################
+
+EXTRA_DIST += \
+ tests/test_ExternalTransforms \
+ tests/regfiles/ExternalTransforms \
+ tests/regfiles/Length \
+ tests/test_layout \
+ tests/test_Length
+
+TESTS = tests/test_ExternalTransforms tests/test_Length
+
+alltests: check alltests-recursive
+
+alltests-recursive: check_layout
+ @srcdir=$(srcdir) $(srcdir)/tests/test_layout; \
+ if test $$? -eq 0; then \
+ echo -e "====================\nlayout tests passed.\n===================="; \
+ else \
+ echo -e "====================\nlayout tests failed.\n===================="; \
+ fi
+ cd tex2lyx; $(MAKE) alltests-recursive
+
+updatetests:
+ cd tex2lyx; $(MAKE) updatetests
+
+check_PROGRAMS = \
+ check_ExternalTransforms \
+ check_Length \
+ check_layout
+
+if INSTALL_MACOSX
+ADD_FRAMEWORKS = -framework QtGui -framework QtCore -framework AppKit -framework ApplicationServices
+endif
+
+check_layout_CPPFLAGS = $(AM_CPPFLAGS)
+check_layout_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT_LIB) $(LIBSHLWAPI)
+check_layout_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_layout_SOURCES = \
+ insets/InsetLayout.cpp \
+ Color.cpp \
+ Counters.cpp \
+ Floating.cpp \
+ FloatList.cpp \
+ FontInfo.cpp \
+ Layout.cpp \
+ LayoutFile.cpp \
+ Lexer.cpp \
+ ModuleList.cpp \
+ Spacing.cpp \
+ TextClass.cpp \
+ tests/check_layout.cpp \
+ tests/boost.cpp \
+ tests/dummy_functions.cpp
+
+check_ExternalTransforms_CPPFLAGS = $(AM_CPPFLAGS)
+check_ExternalTransforms_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT_LIB) $(LIBSHLWAPI)
+check_ExternalTransforms_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_ExternalTransforms_SOURCES = \
+ graphics/GraphicsParams.cpp \
+ insets/ExternalTransforms.cpp \
+ Length.cpp \
+ lengthcommon.cpp \
+ tests/check_ExternalTransforms.cpp \
+ tests/boost.cpp \
+ tests/dummy_functions.cpp
+
+check_Length_CPPFLAGS = $(AM_CPPFLAGS)
+check_Length_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT_LIB) $(LIBSHLWAPI)
+check_Length_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_Length_SOURCES = \
+ Length.cpp \
+ lengthcommon.cpp \
+ tests/check_Length.cpp \
+ tests/boost.cpp \
+ tests/dummy_functions.cpp