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