]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Support for Win98 and earlier.
[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         abort.C \
24         chdir.C \
25         convert.C \
26         convert.h \
27         copy.C \
28         copied_ptr.h \
29         cow_ptr.h \
30         debugstream.h \
31         environment.h \
32         environment.C \
33         filefilterlist.C \
34         filefilterlist.h \
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         fs_extras.C \
46         fs_extras.h \
47         getcwd.C \
48         $(COMPRESSION) kill.C \
49         limited_stack.h \
50         lstrings.C \
51         lstrings.h \
52         lyxalgo.h \
53         lyxlib.h \
54         lyxmanip.h \
55         lyxtime.C \
56         lyxtime.h \
57         lyxsum.C \
58         mkdir.C \
59         os.C \
60         os.h \
61         os2_defines.h \
62         os2_errortable.h \
63         path.C \
64         path.h \
65         package.C \
66         package.h \
67         rename.C \
68         socktools.C \
69         socktools.h \
70         std_istream.h \
71         std_ostream.h \
72         systemcall.C \
73         systemcall.h \
74         tempname.C \
75         textutils.h \
76         translator.h \
77         types.h \
78         userinfo.C \
79         userinfo.h \
80         unlink.C
81
82
83 package.C: build_package
84
85 # Solaris sed does not like spaces bewteen the ;-delimited commands
86 build_package: package.C.in
87         @rm -f tmp_package ;\
88         sed "s,%LYX_DIR%,$(LYX_ABS_INSTALLED_DATADIR),;\
89 s,%LOCALEDIR%,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
90 s,%TOP_SRCDIR%,$(LYX_ABS_TOP_SRCDIR)," \
91                 $(srcdir)/package.C.in > tmp_package ;\
92         if cmp -s tmp_package package.C ; then \
93                 rm -f tmp_package ;\
94         else \
95                 rm -f package.C ;\
96                 mv tmp_package package.C ;\
97         fi