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