]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
f54094cb79762c5876803fb7fa5412c48c58228b
[lyx.git] / src / tex2lyx / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = tex2lyx.man pch.h test-structure.tex test-insets.tex
4
5 DISTCLEANFILES += tex2lyx.1 $(LINKED_FILES)
6
7 #noinst_LTLIBRARIES = libtexparser.la
8 #
9 #libtexparser_la_SOURCES = \
10 #       texparser.C \
11 #       texparser.h
12 #
13 #tex2lyx_LDADD = libtexparser.la
14
15 man_MANS = tex2lyx.1
16
17 bin_PROGRAMS = tex2lyx
18
19 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
20
21 BOOST_LIBS = $(BOOST_REGEX) $(BOOST_FILESYSTEM) $(BOOST_IOSTREAMS)
22
23 if USE_COMPRESSION
24 COMPRESSIONLIB = -lz
25 endif
26
27 LINKED_FILES = \
28         FloatList.C \
29         Floating.C \
30         counters.C \
31         lyxlayout.h \
32         lyxlayout.C \
33         lyxtextclass.C \
34         lyxtextclass.h \
35         lyxlex.C \
36         lyxlex_pimpl.C
37
38 BUILT_SOURCES = $(PCH_FILE) $(LINKED_FILES)
39
40 tex2lyx_SOURCES = \
41         $(LINKED_FILES) \
42         Spacing.h \
43         boost.C \
44         context.C \
45         context.h \
46         gettext.C \
47         gettext.h \
48         lengthcommon.C \
49         lyxfont.C \
50         lyxfont.h \
51         texparser.C \
52         texparser.h \
53         tex2lyx.C \
54         tex2lyx.h \
55         preamble.C \
56         math.C \
57         table.C \
58         text.C
59
60 tex2lyx_LDADD = \
61         $(top_builddir)/src/support/libsupport.la \
62         $(BOOST_LIBS) $(COMPRESSIONLIB)
63
64 $(LINKED_FILES) :
65         @rm -f $@ ; \
66         $(LN_S) $(top_srcdir)/src/$@ .
67
68 rm_link_files:
69         rm -f $(LINKED_FILES)
70
71 tex2lyx.1:
72         cp -p $(srcdir)/tex2lyx.man tex2lyx.1