]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
Add make target to update tex2lyx test references
[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-structure.tex \
32         test/XeTeX-polyglossia.tex
33
34 TESTS = test/runtests.py
35 updatetests:
36         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx ../../../lib/scripts "$(srcdir)/test"
37
38 LINKED_FILES = \
39         ../Author.cpp \
40         ../Color.cpp \
41         ../Counters.cpp \
42         ../Encoding.cpp \
43         ../FloatList.cpp \
44         ../Floating.cpp \
45         ../FontInfo.cpp \
46         ../graphics/GraphicsParams.cpp \
47         ../insets/ExternalTemplate.cpp \
48         ../insets/ExternalTransforms.cpp \
49         ../insets/InsetLayout.cpp \
50         ../LaTeXPackages.cpp \
51         ../Layout.cpp \
52         ../LayoutFile.cpp \
53         ../LayoutModuleList.cpp \
54         ../Length.cpp \
55         ../lengthcommon.cpp \
56         ../Lexer.cpp \
57         ../ModuleList.cpp \
58         ../Spacing.cpp \
59         ../TextClass.cpp \
60         ../version.cpp
61
62 BUILT_SOURCES = $(PCH_FILE)
63
64 tex2lyx_SOURCES = \
65         $(LINKED_FILES) \
66         boost.cpp \
67         Context.cpp \
68         Context.h \
69         math.cpp \
70         Parser.cpp \
71         Parser.h \
72         Preamble.cpp \
73         Preamble.h \
74         table.cpp \
75         tex2lyx.cpp \
76         tex2lyx.h \
77         text.cpp
78
79 tex2lyx_LDADD = \
80         $(top_builddir)/src/support/liblyxsupport.a \
81         $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \
82         $(QT4_LIB) $(QT4_LDFLAGS) \
83         @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
84
85 if INSTALL_MACOSX
86 tex2lyx_LDFLAGS = -framework AppKit
87 endif