]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 noinst_LTLIBRARIES = libsupport.la
4
5 CLEANFILES = path_defines.C
6
7 INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
8
9 EXTRA_DIST = path_defines.C.in lyxstring.C lyxstring.h \
10              os_unix.C os_win32.C os_os2.C
11
12 if USE_LYXSTRING
13 LYXSTRING = lyxstring.C lyxstring.h
14 endif
15
16 if USE_COMPRESSION
17 COMPRESSION = gzstream.C gzstream.h
18 endif
19
20 BUILT_SOURCES = path_defines.C
21
22 libsupport_la_SOURCES = \
23         BoostFormat.h \
24         DebugStream.C \
25         DebugStream.h \
26         FileInfo.C \
27         FileInfo.h \
28         FileMonitor.h \
29         FileMonitor.C \
30         LAssert.C \
31         LAssert.h \
32         LIstream.h \
33         LOstream.h \
34         os.C \
35         os.h \
36         abort.C \
37         atoi.C \
38         boost-inst.C \
39         chdir.C \
40         copy.C \
41         filename.C \
42         filename.h \
43         filetools.C \
44         filetools.h \
45         forkedcall.C \
46         forkedcall.h \
47         forkedcallqueue.C \
48         forkedcallqueue.h \
49         forkedcontr.C \
50         forkedcontr.h \
51         getcwd.C \
52         $(COMPRESSION) kill.C \
53         limited_stack.h \
54         lstrings.C \
55         lstrings.h \
56         lyxalgo.h \
57         lyxfunctional.h \
58         lyxlib.h \
59         lyxmanip.h \
60         lyxtime.C \
61         lyxtime.h \
62         $(LYXSTRING) lyxsum.C \
63         mkdir.C \
64         nt_defines.h \
65         os2_defines.h \
66         os2_errortable.h \
67         path.C \
68         path.h \
69         path_defines.C \
70         path_defines.h \
71         putenv.C \
72         rename.C \
73         rmdir.C \
74         snprintf.h \
75         snprintf.c \
76         sstream.h \
77         systemcall.C \
78         systemcall.h \
79         tempname.C \
80         textutils.h \
81         tostr.h \
82         tostr.C \
83         translator.h \
84         types.h \
85         userinfo.C \
86         userinfo.h \
87         unlink.C
88
89
90 path_defines.C: build_path_defines
91
92 build_path_defines: path_defines.C.in
93         @rm -f tmp_path_defines ;\
94         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
95         ABS_BUILDDIR=`cd ../.. && pwd` ;\
96         sed "s,%LYX_DIR%,$(pkgdatadir), ;\
97                 s,%LOCALEDIR%,$(datadir)/locale, ;\
98                 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
99                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
100                 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
101         if cmp -s tmp_path_defines path_defines.C ; then \
102                 rm -f tmp_path_defines ;\
103         else \
104                 rm -f path_defines.C ;\
105                 mv tmp_path_defines path_defines.C ;\
106         fi