]> git.lyx.org Git - features.git/blob - src/support/Makefile.am
Replace LString.h with support/std_string.h,
[features.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         abort.C \
33         atoi.C \
34         boost-inst.C \
35         chdir.C \
36         copy.C \
37         filename.C \
38         filename.h \
39         filetools.C \
40         filetools.h \
41         forkedcall.C \
42         forkedcall.h \
43         forkedcallqueue.C \
44         forkedcallqueue.h \
45         forkedcontr.C \
46         forkedcontr.h \
47         getcwd.C \
48         $(COMPRESSION) kill.C \
49         limited_stack.h \
50         lstrings.C \
51         lstrings.h \
52         lyxalgo.h \
53         lyxfunctional.h \
54         lyxlib.h \
55         lyxmanip.h \
56         lyxtime.C \
57         lyxtime.h \
58         $(LYXSTRING) lyxsum.C \
59         mkdir.C \
60         nt_defines.h \
61         os.C \
62         os.h \
63         os2_defines.h \
64         os2_errortable.h \
65         path.C \
66         path.h \
67         path_defines.C \
68         path_defines.h \
69         putenv.C \
70         rename.C \
71         rmdir.C \
72         snprintf.h \
73         snprintf.c \
74         sstream.h \
75         std_istream.h \
76         std_ostream.h \
77         std_sstream.h \
78         std_string.h \
79         systemcall.C \
80         systemcall.h \
81         tempname.C \
82         textutils.h \
83         tostr.h \
84         tostr.C \
85         translator.h \
86         types.h \
87         userinfo.C \
88         userinfo.h \
89         unlink.C
90
91
92 path_defines.C: build_path_defines
93
94 build_path_defines: path_defines.C.in
95         @rm -f tmp_path_defines ;\
96         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
97         ABS_BUILDDIR=`cd ../.. && pwd` ;\
98         sed "s,%LYX_DIR%,$(pkgdatadir), ;\
99                 s,%LOCALEDIR%,$(datadir)/locale, ;\
100                 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
101                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
102                 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
103         if cmp -s tmp_path_defines path_defines.C ; then \
104                 rm -f tmp_path_defines ;\
105         else \
106                 rm -f path_defines.C ;\
107                 mv tmp_path_defines path_defines.C ;\
108         fi