]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Introduce wide streams. This fixes the remaining problems of plain text
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 SUBDIRS = . tests
4
5 CLEANFILES += $(BUILT_SOURCES)
6
7 EXTRA_DIST = package.C.in pch.h \
8         os_cygwin.C os_unix.C os_win32.C os_win32.h
9
10 noinst_LTLIBRARIES = libsupport.la
11
12 libsupport_la_LIBADD = $(LIBSHLWAPI)
13
14 BUILT_SOURCES = $(PCH_FILE) package.C
15
16 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
17
18 libsupport_la_SOURCES = \
19         FileMonitor.h \
20         FileMonitor.C \
21         RandomAccessList.h \
22         abort.C \
23         chdir.C \
24         convert.C \
25         convert.h \
26         copy.C \
27         copied_ptr.h \
28         cow_ptr.h \
29         debugstream.h \
30         docstream.C \
31         docstream.h \
32         docstring.C \
33         docstring.h \
34         environment.h \
35         environment.C \
36         filefilterlist.C \
37         filefilterlist.h \
38         filename.C \
39         filename.h \
40         filetools.C \
41         filetools.h \
42         fontutils.C \
43         fontutils.h \
44         forkedcall.C \
45         forkedcall.h \
46         forkedcallqueue.C \
47         forkedcallqueue.h \
48         forkedcontr.C \
49         forkedcontr.h \
50         fs_extras.C \
51         fs_extras.h \
52         getcwd.C \
53         kill.C \
54         limited_stack.h \
55         lstrings.C \
56         lstrings.h \
57         lyxalgo.h \
58         lyxlib.h \
59         lyxmanip.h \
60         lyxtime.C \
61         lyxtime.h \
62         lyxsum.C \
63         mkdir.C \
64         os.C \
65         os.h \
66         path.C \
67         path.h \
68         package.C \
69         package.h \
70         rename.C \
71         socktools.C \
72         socktools.h \
73         std_istream.h \
74         std_ostream.h \
75         systemcall.C \
76         systemcall.h \
77         tempname.C \
78         textutils.h \
79         translator.h \
80         types.h \
81         userinfo.C \
82         userinfo.h \
83         unicode.C \
84         unicode.h \
85         unlink.C
86
87
88 package.C: build_package
89
90 # Solaris sed does not like spaces bewteen the ;-delimited commands
91 build_package: package.C.in
92         @rm -f tmp_package ;\
93         sed "s,%LYX_DIR%,$(LYX_ABS_INSTALLED_DATADIR),;\
94 s,%LOCALEDIR%,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
95 s,%TOP_SRCDIR%,$(LYX_ABS_TOP_SRCDIR),;\
96 s,%PROGRAM_SUFFIX%,$(program_suffix)," \
97                 $(srcdir)/package.C.in > tmp_package ;\
98         if cmp -s tmp_package package.C ; then \
99                 rm -f tmp_package ;\
100         else \
101                 rm -f package.C ;\
102                 mv tmp_package package.C ;\
103         fi