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