]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
Document Buffer::preview()
[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         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 += $(PCH_FLAGS) -I$(top_srcdir)/src/tex2lyx \
21         -I$(top_srcdir)/src -I$(top_builddir) $(BOOST_INCLUDES)
22
23 TEST_FILES = \
24         test/runtests.cmake \
25         test/runtests.py \
26         test/algo2e.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/test-insets.tex \
35         test/test.ltx \
36         test/test-modules.tex \
37         test/test-refstyle-theorems.tex \
38         test/test-structure.tex \
39         test/verbatim.tex \
40         test/XeTeX-polyglossia.tex \
41         test/xfigtest.fig \
42         test/xfigtest.pstex \
43         test/xfigtest.pstex_t
44
45 TEST_RESULTS = \
46         test/algo2e.lyx.lyx \
47         test/box-color-size-space-align.lyx.lyx \
48         test/CJK.lyx.lyx \
49         test/CJKutf8.lyx.lyx \
50         test/DummyDocument.lyx.lyx \
51         test/Dummy~Document.lyx.lyx \
52         test/test-insets.lyx.lyx \
53         test/test.lyx.lyx \
54         test/test-modules.lyx.lyx \
55         test/test-refstyle-theorems.lyx.lyx \
56         test/test-structure.lyx.lyx \
57         test/verbatim.lyx.lyx \
58         test/XeTeX-polyglossia.lyx.lyx
59
60 alltests: check alltests-recursive
61
62 alltests-recursive: tex2lyx
63         @$(PYTHON) "$(srcdir)/test/runtests.py"; \
64         if test $$? -eq 0; then \
65                 echo -e "=====================\ntex2lyx tests passed.\n====================="; \
66         else \
67                 echo -e "=====================\ntex2lyx tests failed.\n====================="; \
68         fi
69
70 updatetests: tex2lyx
71         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
72
73 LINKED_FILES = \
74         ../Author.cpp \
75         ../Color.cpp \
76         ../Counters.cpp \
77         ../Encoding.cpp \
78         ../FloatList.cpp \
79         ../Floating.cpp \
80         ../FontInfo.cpp \
81         ../graphics/GraphicsParams.cpp \
82         ../insets/ExternalTemplate.cpp \
83         ../insets/ExternalTransforms.cpp \
84         ../insets/InsetLayout.cpp \
85         ../LaTeXPackages.cpp \
86         ../Layout.cpp \
87         ../LayoutFile.cpp \
88         ../LayoutModuleList.cpp \
89         ../Length.cpp \
90         ../lengthcommon.cpp \
91         ../Lexer.cpp \
92         ../ModuleList.cpp \
93         ../Spacing.cpp \
94         ../TextClass.cpp \
95         ../version.cpp
96
97 BUILT_SOURCES = $(PCH_FILE)
98
99 tex2lyx_SOURCES = \
100         $(LINKED_FILES) \
101         boost.cpp \
102         Context.cpp \
103         Context.h \
104         dummy_impl.cpp \
105         math.cpp \
106         Parser.cpp \
107         Parser.h \
108         Preamble.cpp \
109         Preamble.h \
110         table.cpp \
111         tex2lyx.cpp \
112         tex2lyx.h \
113         text.cpp
114
115 tex2lyx_LDADD = \
116         $(top_builddir)/src/support/liblyxsupport.a \
117         $(LIBICONV) $(BOOST_LIBS) \
118         $(QT_LIB) $(QT_LDFLAGS) \
119         @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
120
121 if INSTALL_MACOSX
122 tex2lyx_LDFLAGS = -framework AppKit
123 endif
124
125 .PHONY: alltests alltests-recursive updatetests