]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
44143e26fe39f1e25b8d7bf79b67e2d1b7f22003
[lyx.git] / src / tex2lyx / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = TODO.txt tex2lyx.1in $(TEST_FILES) pch.h
4
5 #noinst_LIBRARIES = libtexparser.a
6 #
7 #libtexparser_a_SOURCES = \
8 #       Parser.cpp \
9 #       Parser.h
10 #
11 #tex2lyx_LDADD = libtexparser.a
12
13 man_MANS = tex2lyx.1
14
15 bin_PROGRAMS = tex2lyx
16
17 DEFAULT_INCLUDES = 
18
19 AM_CPPFLAGS += -DTEX2LYX $(PCH_FLAGS) -I$(top_srcdir)/src/tex2lyx \
20         -I$(top_srcdir)/src -I$(top_builddir) $(BOOST_INCLUDES)
21
22 TEST_FILES = \
23         test/runtests.py \
24         test/box-color-size-space-align.tex \
25         test/CJK.tex \
26         test/DummyDocument.tex \
27         test/Dummy~Document.tex \
28         test/Dummy\ Document.tex \
29         test/foo.eps \
30         test/foo.png \
31         test/test-insets.tex \
32         test/test.ltx \
33         test/test-modules.tex \
34         test/test-structure.tex \
35         test/XeTeX-polyglossia.tex \
36         test/xfigtest.fig \
37         test/xfigtest.pstex \
38         test/xfigtest.pstex_t
39
40 TESTS = test/runtests.py
41 updatetests: tex2lyx
42         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
43
44 LINKED_FILES = \
45         ../Author.cpp \
46         ../Color.cpp \
47         ../Counters.cpp \
48         ../Encoding.cpp \
49         ../FloatList.cpp \
50         ../Floating.cpp \
51         ../FontInfo.cpp \
52         ../graphics/GraphicsParams.cpp \
53         ../insets/ExternalTemplate.cpp \
54         ../insets/ExternalTransforms.cpp \
55         ../insets/InsetLayout.cpp \
56         ../LaTeXPackages.cpp \
57         ../Layout.cpp \
58         ../LayoutFile.cpp \
59         ../LayoutModuleList.cpp \
60         ../Length.cpp \
61         ../lengthcommon.cpp \
62         ../Lexer.cpp \
63         ../ModuleList.cpp \
64         ../Spacing.cpp \
65         ../TextClass.cpp \
66         ../version.cpp
67
68 BUILT_SOURCES = $(PCH_FILE)
69
70 tex2lyx_SOURCES = \
71         $(LINKED_FILES) \
72         boost.cpp \
73         Context.cpp \
74         Context.h \
75         math.cpp \
76         Parser.cpp \
77         Parser.h \
78         Preamble.cpp \
79         Preamble.h \
80         table.cpp \
81         tex2lyx.cpp \
82         tex2lyx.h \
83         text.cpp
84
85 tex2lyx_LDADD = \
86         $(top_builddir)/src/support/liblyxsupport.a \
87         $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \
88         $(QT4_LIB) $(QT4_LDFLAGS) \
89         @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
90
91 if INSTALL_MACOSX
92 tex2lyx_LDFLAGS = -framework AppKit
93 endif