]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
Fix broken layout file syntax
[lyx.git] / src / tex2lyx / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = TODO.txt tex2lyx.1in $(TEST_FILES) 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 $(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/DummyDocument.tex \
27         test/foo.eps \
28         test/foo.png \
29         test/test-insets.tex \
30         test/test.ltx \
31         test/test-modules.tex \
32         test/test-structure.tex \
33         test/XeTeX-polyglossia.tex \
34         test/xfigtest.fig \
35         test/xfigtest.pstex \
36         test/xfigtest.pstex_t
37
38 TESTS = test/runtests.py
39 updatetests: tex2lyx
40         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
41
42 LINKED_FILES = \
43         ../Author.cpp \
44         ../Color.cpp \
45         ../Counters.cpp \
46         ../Encoding.cpp \
47         ../FloatList.cpp \
48         ../Floating.cpp \
49         ../FontInfo.cpp \
50         ../graphics/GraphicsParams.cpp \
51         ../insets/ExternalTemplate.cpp \
52         ../insets/ExternalTransforms.cpp \
53         ../insets/InsetLayout.cpp \
54         ../LaTeXPackages.cpp \
55         ../Layout.cpp \
56         ../LayoutFile.cpp \
57         ../LayoutModuleList.cpp \
58         ../Length.cpp \
59         ../lengthcommon.cpp \
60         ../Lexer.cpp \
61         ../ModuleList.cpp \
62         ../Spacing.cpp \
63         ../TextClass.cpp \
64         ../version.cpp
65
66 BUILT_SOURCES = $(PCH_FILE)
67
68 tex2lyx_SOURCES = \
69         $(LINKED_FILES) \
70         boost.cpp \
71         Context.cpp \
72         Context.h \
73         math.cpp \
74         Parser.cpp \
75         Parser.h \
76         Preamble.cpp \
77         Preamble.h \
78         table.cpp \
79         tex2lyx.cpp \
80         tex2lyx.h \
81         text.cpp
82
83 tex2lyx_LDADD = \
84         $(top_builddir)/src/support/liblyxsupport.a \
85         $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \
86         $(QT4_LIB) $(QT4_LDFLAGS) \
87         @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
88
89 if INSTALL_MACOSX
90 tex2lyx_LDFLAGS = -framework AppKit
91 endif