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