]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
add config.h
[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 COMPRESSIONLIB = -lz
24
25 LINKED_FILES = \
26         FloatList.C \
27         Floating.C \
28         counters.C \
29         lyxlayout.h \
30         lyxlayout.C \
31         lyxtextclass.C \
32         lyxtextclass.h \
33         lyxlex.C \
34         lyxlex_pimpl.C
35
36 BUILT_SOURCES = $(PCH_FILE) $(LINKED_FILES)
37
38 tex2lyx_SOURCES = \
39         $(LINKED_FILES) \
40         Spacing.h \
41         boost.C \
42         context.C \
43         context.h \
44         gettext.C \
45         lengthcommon.C \
46         lyxfont.C \
47         lyxfont.h \
48         texparser.C \
49         texparser.h \
50         tex2lyx.C \
51         tex2lyx.h \
52         preamble.C \
53         math.C \
54         table.C \
55         text.C
56
57 tex2lyx_LDADD = \
58         $(top_builddir)/src/support/libsupport.la \
59         $(BOOST_LIBS) $(LIBICONV) @LIBS@ $(COMPRESSIONLIB)
60
61 $(LINKED_FILES) :
62         @rm -f $@ ; \
63         $(LN_S) $(top_srcdir)/src/$@ .
64
65 rm_link_files:
66         rm -f $(LINKED_FILES)
67
68 tex2lyx.1:
69         cp -p $(srcdir)/tex2lyx.man tex2lyx.1