]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
simplify build process of tex2lyx
[lyx.git] / src / tex2lyx / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = tex2lyx.man test-structure.tex test-insets.tex
4 EXTRA_DIST += pch.h
5
6 DISTCLEANFILES += tex2lyx.1
7
8 #noinst_LTLIBRARIES = libtexparser.la
9 #
10 #libtexparser_la_SOURCES = \
11 #       Parser.cpp \
12 #       Parser.h
13 #
14 #tex2lyx_LDADD = libtexparser.la
15
16 man_MANS = tex2lyx.1
17
18 bin_PROGRAMS = tex2lyx
19
20 DEFAULT_INCLUDES = 
21
22 AM_CPPFLAGS += \
23         -DTEX2LYX \
24         $(PCH_FLAGS) \
25         -I$(top_srcdir)/src/tex2lyx \
26         -I$(top_srcdir)/src  \
27         -I$(top_builddir)/src \
28         $(BOOST_INCLUDES)
29
30
31 LINKED_FILES = \
32         ../FloatList.cpp \
33         ../Floating.cpp \
34         ../Counters.cpp \
35         ../Layout.h \
36         ../Layout.cpp \
37         ../TextClass.cpp \
38         ../TextClass.h \
39         ../Lexer.cpp 
40
41 BUILT_SOURCES = $(PCH_FILE)
42
43 tex2lyx_SOURCES = \
44         $(LINKED_FILES) \
45         Spacing.h \
46         boost.cpp \
47         Context.cpp \
48         Context.h \
49         Font.cpp \
50         Font.h \
51         gettext.cpp \
52         lengthcommon.cpp \
53         Parser.cpp \
54         Parser.h \
55         tex2lyx.cpp \
56         tex2lyx.h \
57         preamble.cpp \
58         math.cpp \
59         table.cpp \
60         text.cpp
61
62 tex2lyx_LDADD = \
63         $(top_builddir)/src/support/liblyxsupport.la \
64         $(top_builddir)/boost/liblyxboost.la \
65         $(LIBICONV) @LIBS@
66
67 tex2lyx.1:
68         cp -p $(srcdir)/tex2lyx.man tex2lyx.1