]> git.lyx.org Git - features.git/blob - src/support/Makefile.am
change "support/std_sstream.h" to <sstream>
[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 os_unix.C os_win32.C os_os2.C
10
11 if USE_COMPRESSION
12 COMPRESSION = gzstream.C gzstream.h
13 endif
14
15 BUILT_SOURCES = path_defines.C
16
17 libsupport_la_SOURCES = \
18         FileInfo.C \
19         FileInfo.h \
20         FileMonitor.h \
21         FileMonitor.C \
22         abort.C \
23         atoi.C \
24         chdir.C \
25         copy.C \
26         copied_ptr.h \
27         cow_ptr.h \
28         debugstream.h \
29         filename.C \
30         filename.h \
31         filetools.C \
32         filetools.h \
33         forkedcall.C \
34         forkedcall.h \
35         forkedcallqueue.C \
36         forkedcallqueue.h \
37         forkedcontr.C \
38         forkedcontr.h \
39         getcwd.C \
40         globbing.C \
41         globbing.h \
42         $(COMPRESSION) kill.C \
43         limited_stack.h \
44         lstrings.C \
45         lstrings.h \
46         lyxalgo.h \
47         lyxfunctional.h \
48         lyxlib.h \
49         lyxmanip.h \
50         lyxtime.C \
51         lyxtime.h \
52         lyxsum.C \
53         mkdir.C \
54         os.C \
55         os.h \
56         os2_defines.h \
57         os2_errortable.h \
58         path.C \
59         path.h \
60         path_defines.C \
61         path_defines.h \
62         putenv.C \
63         rename.C \
64         rmdir.C \
65         snprintf.h \
66         snprintf.c \
67         socktools.C \
68         socktools.h \
69         std_istream.h \
70         std_ostream.h \
71         systemcall.C \
72         systemcall.h \
73         tempname.C \
74         textutils.h \
75         tostr.h \
76         tostr.C \
77         translator.h \
78         types.h \
79         userinfo.C \
80         userinfo.h \
81         unlink.C
82
83
84 path_defines.C: build_path_defines
85
86 build_path_defines: path_defines.C.in
87         @rm -f tmp_path_defines ;\
88         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
89         ABS_BUILDDIR=`cd ../.. && pwd` ;\
90         sed "s,%LYX_DIR%,$(pkgdatadir), ;\
91                 s,%LOCALEDIR%,$(datadir)/locale, ;\
92                 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
93                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
94                 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
95         if cmp -s tmp_path_defines path_defines.C ; then \
96                 rm -f tmp_path_defines ;\
97         else \
98                 rm -f path_defines.C ;\
99                 mv tmp_path_defines path_defines.C ;\
100         fi