]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
more cursor dispatch
[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 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         nt_defines.h \
55         os.C \
56         os.h \
57         os2_defines.h \
58         os2_errortable.h \
59         path.C \
60         path.h \
61         path_defines.C \
62         path_defines.h \
63         putenv.C \
64         rename.C \
65         rmdir.C \
66         snprintf.h \
67         snprintf.c \
68         socktools.C \
69         socktools.h \
70         sstream.h \
71         std_istream.h \
72         std_ostream.h \
73         std_sstream.h \
74         systemcall.C \
75         systemcall.h \
76         tempname.C \
77         textutils.h \
78         tostr.h \
79         tostr.C \
80         translator.h \
81         types.h \
82         userinfo.C \
83         userinfo.h \
84         unlink.C
85
86
87 path_defines.C: build_path_defines
88
89 build_path_defines: path_defines.C.in
90         @rm -f tmp_path_defines ;\
91         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
92         ABS_BUILDDIR=`cd ../.. && pwd` ;\
93         sed "s,%LYX_DIR%,$(pkgdatadir), ;\
94                 s,%LOCALEDIR%,$(datadir)/locale, ;\
95                 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
96                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
97                 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
98         if cmp -s tmp_path_defines path_defines.C ; then \
99                 rm -f tmp_path_defines ;\
100         else \
101                 rm -f path_defines.C ;\
102                 mv tmp_path_defines path_defines.C ;\
103         fi