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