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