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