]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
Merge: Remove tex2lyx defines to allow for newer automake
[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
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 += $(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 alltests: check alltests-recursive
57
58 alltests-recursive: tex2lyx
59         @$(PYTHON) "$(srcdir)/test/runtests.py"; \
60         if test $$? -eq 0; then \
61                 echo -e "=====================\ntex2lyx tests passed.\n====================="; \
62         else \
63                 echo -e "=====================\ntex2lyx tests failed.\n====================="; \
64         fi
65
66 updatetests: tex2lyx
67         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
68
69 LINKED_FILES = \
70         ../Author.cpp \
71         ../Color.cpp \
72         ../Counters.cpp \
73         ../Encoding.cpp \
74         ../FloatList.cpp \
75         ../Floating.cpp \
76         ../FontInfo.cpp \
77         ../graphics/GraphicsParams.cpp \
78         ../insets/ExternalTemplate.cpp \
79         ../insets/ExternalTransforms.cpp \
80         ../insets/InsetLayout.cpp \
81         ../LaTeXPackages.cpp \
82         ../Layout.cpp \
83         ../LayoutFile.cpp \
84         ../LayoutModuleList.cpp \
85         ../Length.cpp \
86         ../lengthcommon.cpp \
87         ../Lexer.cpp \
88         ../ModuleList.cpp \
89         ../Spacing.cpp \
90         ../TextClass.cpp \
91         ../version.cpp
92
93 BUILT_SOURCES = $(PCH_FILE)
94
95 tex2lyx_SOURCES = \
96         $(LINKED_FILES) \
97         boost.cpp \
98         Context.cpp \
99         Context.h \
100         dummy_impl.cpp \
101         math.cpp \
102         Parser.cpp \
103         Parser.h \
104         Preamble.cpp \
105         Preamble.h \
106         table.cpp \
107         tex2lyx.cpp \
108         tex2lyx.h \
109         text.cpp
110
111 tex2lyx_LDADD = \
112         $(top_builddir)/src/support/liblyxsupport.a \
113         $(LIBICONV) $(BOOST_LIBS) \
114         $(QT4_LIB) $(QT4_LDFLAGS) \
115         @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
116
117 if INSTALL_MACOSX
118 tex2lyx_LDFLAGS = -framework AppKit
119 endif
120
121 .PHONY: alltests alltests-recursive updatetests