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