]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
fix handling of locales with LyX/Mac
[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         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         sstream.h \
70         std_istream.h \
71         std_ostream.h \
72         std_sstream.h \
73         systemcall.C \
74         systemcall.h \
75         tempname.C \
76         textutils.h \
77         tostr.h \
78         tostr.C \
79         translator.h \
80         types.h \
81         userinfo.C \
82         userinfo.h \
83         unlink.C
84
85
86 path_defines.C: build_path_defines
87
88 build_path_defines: path_defines.C.in
89         @rm -f tmp_path_defines ;\
90         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
91         ABS_BUILDDIR=`cd ../.. && pwd` ;\
92         sed "s,%LYX_DIR%,$(pkgdatadir), ;\
93                 s,%LOCALEDIR%,$(datadir)/locale, ;\
94                 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
95                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
96                 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
97         if cmp -s tmp_path_defines path_defines.C ; then \
98                 rm -f tmp_path_defines ;\
99         else \
100                 rm -f path_defines.C ;\
101                 mv tmp_path_defines path_defines.C ;\
102         fi