]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Fix bug 2186 (from Bo Peng):
[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_os2.C os_unix.C os_win32.C os_win32.h
9
10 noinst_LTLIBRARIES = libsupport.la
11
12 if USE_COMPRESSION
13 COMPRESSION = gzstream.C gzstream.h
14 endif
15
16 BUILT_SOURCES = $(PCH_FILE) package.C
17
18 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
19
20 libsupport_la_SOURCES = \
21         FileMonitor.h \
22         FileMonitor.C \
23         RandomAccessList.h \
24         abort.C \
25         chdir.C \
26         convert.C \
27         convert.h \
28         copy.C \
29         copied_ptr.h \
30         cow_ptr.h \
31         debugstream.h \
32         environment.h \
33         environment.C \
34         filefilterlist.C \
35         filefilterlist.h \
36         filename.C \
37         filename.h \
38         filetools.C \
39         filetools.h \
40         forkedcall.C \
41         forkedcall.h \
42         forkedcallqueue.C \
43         forkedcallqueue.h \
44         forkedcontr.C \
45         forkedcontr.h \
46         fs_extras.C \
47         fs_extras.h \
48         getcwd.C \
49         $(COMPRESSION) kill.C \
50         limited_stack.h \
51         lstrings.C \
52         lstrings.h \
53         lyxalgo.h \
54         lyxlib.h \
55         lyxmanip.h \
56         lyxtime.C \
57         lyxtime.h \
58         lyxsum.C \
59         mkdir.C \
60         os.C \
61         os.h \
62         os2_defines.h \
63         os2_errortable.h \
64         path.C \
65         path.h \
66         package.C \
67         package.h \
68         rename.C \
69         socktools.C \
70         socktools.h \
71         std_istream.h \
72         std_ostream.h \
73         systemcall.C \
74         systemcall.h \
75         tempname.C \
76         textutils.h \
77         translator.h \
78         types.h \
79         userinfo.C \
80         userinfo.h \
81         unlink.C
82
83
84 package.C: build_package
85
86 # Solaris sed does not like spaces bewteen the ;-delimited commands
87 build_package: package.C.in
88         @rm -f tmp_package ;\
89         sed "s,%LYX_DIR%,$(LYX_ABS_INSTALLED_DATADIR),;\
90 s,%LOCALEDIR%,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
91 s,%TOP_SRCDIR%,$(LYX_ABS_TOP_SRCDIR)," \
92                 $(srcdir)/package.C.in > tmp_package ;\
93         if cmp -s tmp_package package.C ; then \
94                 rm -f tmp_package ;\
95         else \
96                 rm -f package.C ;\
97                 mv tmp_package package.C ;\
98         fi