X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2FMakefile.am;h=7406bb2ffe950e9ef45c274f94f78fd058797dd2;hb=e3f65fd0883c7706aa08fb72e128e7c32fba11b5;hp=9154ef60dae570968c3bc2bd71bd2580ae641813;hpb=848c89564fce9c4bfec79b915746dc6bc47abc3d;p=lyx.git diff --git a/src/tex2lyx/Makefile.am b/src/tex2lyx/Makefile.am index 9154ef60da..7406bb2ffe 100644 --- a/src/tex2lyx/Makefile.am +++ b/src/tex2lyx/Makefile.am @@ -1,64 +1,80 @@ include $(top_srcdir)/config/common.am -EXTRA_DIST = tex2lyx.man pch.h test-structure.tex test-insets.tex +EXTRA_DIST = TODO.txt tex2lyx.1in $(TEST_FILES) pch.h -DISTCLEANFILES += tex2lyx.1 $(LINKED_FILES) - -#noinst_LTLIBRARIES = libtexparser.la +#noinst_LIBRARIES = libtexparser.a # -#libtexparser_la_SOURCES = \ +#libtexparser_a_SOURCES = \ # Parser.cpp \ # Parser.h # -#tex2lyx_LDADD = libtexparser.la +#tex2lyx_LDADD = libtexparser.a man_MANS = tex2lyx.1 bin_PROGRAMS = tex2lyx -AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES) +DEFAULT_INCLUDES = + +AM_CPPFLAGS += -DTEX2LYX $(PCH_FLAGS) -I$(top_srcdir)/src/tex2lyx \ + -I$(top_srcdir)/src -I$(top_builddir) $(BOOST_INCLUDES) + +TEST_FILES = \ + test/box-color-size-space-align.tex \ + test/DummyDocument.tex \ + test/foo.eps \ + test/foo.png \ + test/test-insets.tex \ + test/test.ltx \ + test/test-structure.tex LINKED_FILES = \ - FloatList.cpp \ - Floating.cpp \ - Counters.cpp \ - Layout.h \ - Layout.cpp \ - TextClass.cpp \ - TextClass.h \ - Lexer.cpp + ../Author.cpp \ + ../Color.cpp \ + ../Counters.cpp \ + ../Encoding.cpp \ + ../FloatList.cpp \ + ../Floating.cpp \ + ../FontInfo.cpp \ + ../graphics/GraphicsParams.cpp \ + ../insets/ExternalTemplate.cpp \ + ../insets/ExternalTransforms.cpp \ + ../insets/InsetLayout.cpp \ + ../LaTeXPackages.cpp \ + ../Layout.cpp \ + ../LayoutFile.cpp \ + ../LayoutModuleList.cpp \ + ../Length.cpp \ + ../lengthcommon.cpp \ + ../Lexer.cpp \ + ../ModuleList.cpp \ + ../Spacing.cpp \ + ../TextClass.cpp \ + ../version.cpp -BUILT_SOURCES = $(PCH_FILE) $(LINKED_FILES) +BUILT_SOURCES = $(PCH_FILE) tex2lyx_SOURCES = \ $(LINKED_FILES) \ - Spacing.h \ boost.cpp \ Context.cpp \ Context.h \ - Font.cpp \ - Font.h \ - gettext.cpp \ - lengthcommon.cpp \ + math.cpp \ Parser.cpp \ Parser.h \ + Preamble.cpp \ + Preamble.h \ + table.cpp \ tex2lyx.cpp \ tex2lyx.h \ - preamble.cpp \ - math.cpp \ - table.cpp \ text.cpp tex2lyx_LDADD = \ - $(top_builddir)/src/support/liblyxsupport.la \ - $(top_builddir)/boost/liblyxboost.la - -$(LINKED_FILES) : - @rm -f $@ ; \ - $(LN_S) $(top_srcdir)/src/$@ . - -rm_link_files: - rm -f $(LINKED_FILES) + $(top_builddir)/src/support/liblyxsupport.a \ + $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \ + $(QT4_LIB) $(QT4_LDFLAGS) \ + @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI) -tex2lyx.1: - cp -p $(srcdir)/tex2lyx.man tex2lyx.1 +if INSTALL_MACOSX +tex2lyx_LDFLAGS = -framework AppKit +endif