]> git.lyx.org Git - features.git/blob - src/tex2lyx/Makefile.am
make sure to dist pch.h and mark PCH_FILE as a built file
[features.git] / src / tex2lyx / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = pch.h test-structure.tex test-insets.tex
4
5 DISTCLEANFILES += $(LINKED_SOURCES)
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 bin_PROGRAMS = tex2lyx
16
17 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
18
19 BOOST_LIBS = $(BOOST_REGEX) $(BOOST_FILESYSTEM)
20
21 if USE_COMPRESSION
22 COMPRESSIONLIB = -lz
23 endif
24
25 LINKED_SOURCES = \
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_SOURCES)
37
38 tex2lyx_SOURCES = \
39         $(LINKED_SOURCES) \
40         Spacing.h \
41         boost.C \
42         context.C \
43         context.h \
44         gettext.C \
45         gettext.h \
46         lengthcommon.C \
47         lyxfont.C \
48         lyxfont.h \
49         texparser.C \
50         texparser.h \
51         tex2lyx.C \
52         tex2lyx.h \
53         preamble.C \
54         math.C \
55         table.C \
56         text.C
57
58 tex2lyx_LDADD = \
59         $(top_builddir)/src/support/libsupport.la \
60         $(BOOST_LIBS) $(COMPRESSIONLIB)
61
62 $(LINKED_SOURCES) :
63         @rm -f $@ ; \
64         $(LN_S) $(top_srcdir)/src/$@ .
65
66 rm_link_files:
67         rm -f $(LINKED_SOURCES)