]> git.lyx.org Git - features.git/blob - src/tex2lyx/Makefile.am
Add tex2lyx test results to dist package.
[features.git] / src / tex2lyx / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = TODO.txt tex2lyx.1in $(TEST_FILES) $(TEST_RESULTS) 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/CJKutf8.tex \
27         test/DummyDocument.tex \
28         test/Dummy~Document.tex \
29         test/Dummy\ Document.tex \
30         test/foo.eps \
31         test/foo.png \
32         test/test-insets.tex \
33         test/test.ltx \
34         test/test-modules.tex \
35         test/test-structure.tex \
36         test/XeTeX-polyglossia.tex \
37         test/xfigtest.fig \
38         test/xfigtest.pstex \
39         test/xfigtest.pstex_t
40
41 TEST_RESULTS = \
42         test/box-color-size-space-align.lyx.lyx \
43         test/CJK.lyx.lyx \
44         test/CJKutf8.lyx.lyx \
45         test/DummyDocument.lyx.lyx \
46         test/Dummy~Document.lyx.lyx \
47         test/Dummy\ Document.lyx.lyx \
48         test/test-insets.lyx.lyx \
49         test/test.lyx.lyx \
50         test/test-modules.lyx.lyx \
51         test/test-structure.lyx.lyx \
52         test/XeTeX-polyglossia.lyx.lyx
53
54 TESTS = test/runtests.py
55 updatetests: tex2lyx
56         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
57
58 LINKED_FILES = \
59         ../Author.cpp \
60         ../Color.cpp \
61         ../Counters.cpp \
62         ../Encoding.cpp \
63         ../FloatList.cpp \
64         ../Floating.cpp \
65         ../FontInfo.cpp \
66         ../graphics/GraphicsParams.cpp \
67         ../insets/ExternalTemplate.cpp \
68         ../insets/ExternalTransforms.cpp \
69         ../insets/InsetLayout.cpp \
70         ../LaTeXPackages.cpp \
71         ../Layout.cpp \
72         ../LayoutFile.cpp \
73         ../LayoutModuleList.cpp \
74         ../Length.cpp \
75         ../lengthcommon.cpp \
76         ../Lexer.cpp \
77         ../ModuleList.cpp \
78         ../Spacing.cpp \
79         ../TextClass.cpp \
80         ../version.cpp
81
82 BUILT_SOURCES = $(PCH_FILE)
83
84 tex2lyx_SOURCES = \
85         $(LINKED_FILES) \
86         boost.cpp \
87         Context.cpp \
88         Context.h \
89         math.cpp \
90         Parser.cpp \
91         Parser.h \
92         Preamble.cpp \
93         Preamble.h \
94         table.cpp \
95         tex2lyx.cpp \
96         tex2lyx.h \
97         text.cpp
98
99 tex2lyx_LDADD = \
100         $(top_builddir)/src/support/liblyxsupport.a \
101         $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \
102         $(QT4_LIB) $(QT4_LDFLAGS) \
103         @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
104
105 if INSTALL_MACOSX
106 tex2lyx_LDFLAGS = -framework AppKit
107 endif