]> git.lyx.org Git - features.git/blob - src/support/Makefile.am
some more compression stuff
[features.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 nodist_include_HEADERS = path_defines.C
4 noinst_LTLIBRARIES = libsupport.la
5
6 CLEANFILES = path_defines.C
7
8 INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
9
10 EXTRA_DIST = path_defines.C.in lyxstring.C lyxstring.h \
11              os_unix.C os_win32.C os_os2.C
12
13 if USE_LYXSTRING
14 LYXSTRING = lyxstring.C lyxstring.h
15 endif
16
17 if USE_COMPRESSION
18 COMPRESSION = gzstream.C gzstream.C
19 endif
20
21 BUILT_SOURCES = path_defines.C
22
23 libsupport_la_SOURCES = \
24         BoostFormat.h \
25         DebugStream.C \
26         DebugStream.h \
27         FileInfo.C \
28         FileInfo.h \
29         FileMonitor.h \
30         FileMonitor.C \
31         LAssert.C \
32         LAssert.h \
33         LIstream.h \
34         LOstream.h \
35         os.C \
36         os.h \
37         abort.C \
38         atoi.C \
39         boost-inst.C \
40         chdir.C \
41         copy.C \
42         filename.C \
43         filename.h \
44         filetools.C \
45         filetools.h \
46         forkedcall.C \
47         forkedcall.h \
48         forkedcallqueue.C \
49         forkedcallqueue.h \
50         forkedcontr.C \
51         forkedcontr.h \
52         getcwd.C \
53         $(COMPRESSION) kill.C \
54         limited_stack.h \
55         lstrings.C \
56         lstrings.h \
57         lyxalgo.h \
58         lyxfunctional.h \
59         lyxlib.h \
60         lyxmanip.h \
61         lyxtime.C \
62         lyxtime.h \
63         $(LYXSTRING) lyxsum.C \
64         mkdir.C \
65         nt_defines.h \
66         os2_defines.h \
67         os2_errortable.h \
68         path.C \
69         path.h \
70         path_defines.C \
71         path_defines.h \
72         putenv.C \
73         rename.C \
74         rmdir.C \
75         snprintf.h \
76         snprintf.c \
77         sstream.h \
78         systemcall.C \
79         systemcall.h \
80         tempname.C \
81         textutils.h \
82         tostr.h \
83         tostr.C \
84         translator.h \
85         types.h \
86         userinfo.C \
87         userinfo.h \
88         unlink.C
89
90
91 path_defines.C: build_path_defines
92
93 build_path_defines: path_defines.C.in
94         @rm -f tmp_path_defines ;\
95         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
96         ABS_BUILDDIR=`cd ../.. && pwd` ;\
97         sed "s,%LYX_DIR%,$(pkgdatadir), ;\
98                 s,%LOCALEDIR%,$(datadir)/locale, ;\
99                 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
100                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
101                 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
102         if cmp -s tmp_path_defines path_defines.C ; then \
103                 rm -f tmp_path_defines ;\
104         else \
105                 rm -f path_defines.C ;\
106                 mv tmp_path_defines path_defines.C ;\
107         fi