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