]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
a7b23f8a960a7ea6cf475539137b249339a40b93
[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) -I$(top_builddir)/src \
22         $(BOOST_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/Dummy~Document.tex \
34         test/foo.eps \
35         test/foo.png \
36         test/test-insets.tex \
37         test/test-insets-basic.lyx \
38         test/test.ltx \
39         test/test-memoir.tex \
40         test/test-modules.tex \
41         test/test-refstyle-theorems.tex \
42         test/test-scr.tex \
43         test/test-structure.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/Dummy~Document.lyx.lyx \
57         test/test-insets.lyx.lyx \
58         test/test-insets-basic.lyx.lyx \
59         test/test.lyx.lyx \
60         test/test-memoir.lyx.lyx \
61         test/test-modules.lyx.lyx \
62         test/test-refstyle-theorems.lyx.lyx \
63         test/test-scr.lyx.lyx \
64         test/test-structure.lyx.lyx \
65         test/XeTeX-polyglossia.lyx.lyx
66
67 alltests: check alltests-recursive
68
69 alltests-recursive: tex2lyx
70         @$(PYTHON) "$(srcdir)/test/runtests.py"; \
71         if test $$? -eq 0; then \
72                 echo -e "=====================\ntex2lyx tests passed.\n====================="; \
73         else \
74                 echo -e "=====================\ntex2lyx tests failed.\n====================="; \
75         fi
76
77 updatetests: tex2lyx
78         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
79
80 LINKED_FILES = \
81         ../Author.cpp \
82         ../Color.cpp \
83         ../Counters.cpp \
84         ../Encoding.cpp \
85         ../FloatList.cpp \
86         ../Floating.cpp \
87         ../FontInfo.cpp \
88         ../graphics/GraphicsParams.cpp \
89         ../insets/ExternalTemplate.cpp \
90         ../insets/ExternalTransforms.cpp \
91         ../insets/InsetLayout.cpp \
92         ../LaTeXPackages.cpp \
93         ../Layout.cpp \
94         ../LayoutFile.cpp \
95         ../LayoutModuleList.cpp \
96         ../Length.cpp \
97         ../lengthcommon.cpp \
98         ../Lexer.cpp \
99         ../ModuleList.cpp \
100         ../Spacing.cpp \
101         ../TextClass.cpp \
102         ../version.cpp
103
104 BUILT_SOURCES = $(PCH_FILE)
105
106 tex2lyx_SOURCES = \
107         $(LINKED_FILES) \
108         boost.cpp \
109         Context.cpp \
110         Context.h \
111         dummy_impl.cpp \
112         math.cpp \
113         Parser.cpp \
114         Parser.h \
115         Preamble.cpp \
116         Preamble.h \
117         table.cpp \
118         tex2lyx.cpp \
119         tex2lyx.h \
120         text.cpp
121
122 tex2lyx_LDADD = \
123         $(top_builddir)/src/support/liblyxsupport.a \
124         $(LIBICONV) $(BOOST_LIBS) \
125         $(QT_LIB) $(QT_LDFLAGS) \
126         @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
127
128 if INSTALL_MACOSX
129 tex2lyx_LDFLAGS = -framework AppKit
130 endif
131
132 .PHONY: alltests alltests-recursive updatetests