]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
Rename eolString() to eol() and pass a MathTeXStream parameter
[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) \
4         CMakeLists.txt test/CMakeLists.txt
5
6 #noinst_LIBRARIES = libtexparser.a
7 #
8 #libtexparser_a_SOURCES = \
9 #       Parser.cpp \
10 #       Parser.h
11 #
12 #tex2lyx_LDADD = libtexparser.a
13
14 man_MANS = tex2lyx.1
15
16 bin_PROGRAMS = tex2lyx
17
18 AM_CPPFLAGS += -I$(top_srcdir)/src/tex2lyx \
19         -I$(top_srcdir)/src -I$(top_builddir) -I$(top_builddir)/src \
20         $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) $(NOD_INCLUDES)
21
22 TEST_FILES = \
23         test/runtests.cmake \
24         test/runtests.py \
25         test/algo2e.tex \
26         test/beamer.tex \
27         test/box-color-size-space-align.tex \
28         test/CJK.tex \
29         test/CJKutf8.tex \
30         test/DummyDocument.tex \
31         test/Dummy~Document.tex \
32         test/foo.eps \
33         test/foo.png \
34         test/listpreamble.tex \
35         test/test-insets.tex \
36         test/test-insets-basic.tex \
37         test/test.ltx \
38         test/test-memoir.tex \
39         test/test-minted.tex \
40         test/test-modules.tex \
41         test/test-refstyle-theorems.tex \
42         test/test-scr.tex \
43         test/test-structure.tex \
44         test/verbatim.tex \
45         test/XeTeX-polyglossia.tex \
46         test/xfigtest.fig \
47         test/xfigtest.pstex \
48         test/xfigtest.pstex_t
49
50 TEST_RESULTS = \
51         test/algo2e.lyx.lyx \
52         test/beamer.lyx.lyx \
53         test/box-color-size-space-align.lyx.lyx \
54         test/CJK.lyx.lyx \
55         test/CJKutf8.lyx.lyx \
56         test/DummyDocument.lyx.lyx \
57         test/Dummy~Document.lyx.lyx \
58         test/listpreamble.lyx.lyx \
59         test/test-insets.lyx.lyx \
60         test/test-insets-basic.lyx.lyx \
61         test/test.lyx.lyx \
62         test/test-memoir.lyx.lyx \
63         test/test-minted.lyx.lyx \
64         test/test-modules.lyx.lyx \
65         test/test-refstyle-theorems.lyx.lyx \
66         test/test-scr.lyx.lyx \
67         test/test-structure.lyx.lyx \
68         test/verbatim.lyx.lyx \
69         test/XeTeX-polyglossia.lyx.lyx
70
71 alltests: check alltests-recursive
72
73 alltests-recursive: tex2lyx
74         if test "$(srcdir)" = "$(builddir)"; then \
75                 echo "tex2lyx tests require a separate build directory"; \
76                 exit 1; \
77         fi
78         @$(PYTHON) "$(srcdir)/test/runtests.py"; \
79         if test $$? -eq 0; then \
80                 echo -e "=====================\ntex2lyx tests passed.\n====================="; \
81         else \
82                 echo -e "=====================\ntex2lyx tests failed.\n====================="; \
83         fi
84
85 updatetests: tex2lyx
86         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
87
88 LYX_OBJS = \
89         ../Author.o \
90         ../CiteEnginesList.o \
91         ../Color.o \
92         ../Counters.o \
93         ../Encoding.o \
94         ../FloatList.o \
95         ../Floating.o \
96         ../FontInfo.o \
97         ../graphics/GraphicsParams.o \
98         ../insets/ExternalTemplate.o \
99         ../insets/ExternalTransforms.o \
100         ../insets/InsetLayout.o \
101         ../LaTeXPackages.o \
102         ../Layout.o \
103         ../LayoutFile.o \
104         ../LayoutModuleList.o \
105         ../Lexer.o \
106         ../ModuleList.o \
107         ../Spacing.o \
108         ../TextClass.o \
109         ../version.o
110
111 tex2lyx_SOURCES = \
112         boost.cpp \
113         Context.cpp \
114         Context.h \
115         dummy_impl.cpp \
116         math.cpp \
117         Parser.cpp \
118         Parser.h \
119         Preamble.cpp \
120         Preamble.h \
121         table.cpp \
122         tex2lyx.cpp \
123         tex2lyx.h \
124         text.cpp
125
126 tex2lyx_LDADD = \
127         $(LYX_OBJS) \
128         $(top_builddir)/src/support/liblyxsupport.a \
129         $(LIBICONV) \
130         $(QT_LIB) $(QT_LDFLAGS) \
131         @LIBS@ $(ICONV_LIBS) $(ZLIB_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
132
133 if INSTALL_MACOSX
134 tex2lyx_LDFLAGS = -framework AppKit \
135         -Wl,-rpath,@loader_path/../Frameworks \
136         -Wl,-rpath,@executable_path/../Frameworks \
137         -Wl,-headerpad_max_install_names
138 endif
139
140 .PHONY: alltests alltests-recursive updatetests