]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
b47361c5ccb5311850aedb764248d328ca0dcf3b
[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 os_cygwin.C os_os2.C os_unix.C os_win32.C
8
9 noinst_LTLIBRARIES = libsupport.la
10
11 if USE_COMPRESSION
12 COMPRESSION = gzstream.C gzstream.h
13 endif
14
15 BUILT_SOURCES = $(PCH_FILE) package.C
16
17 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
18
19 libsupport_la_SOURCES = \
20         FileMonitor.h \
21         FileMonitor.C \
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         environment.h \
31         environment.C \
32         filefilterlist.C \
33         filefilterlist.h \
34         filename.C \
35         filename.h \
36         filetools.C \
37         filetools.h \
38         forkedcall.C \
39         forkedcall.h \
40         forkedcallqueue.C \
41         forkedcallqueue.h \
42         forkedcontr.C \
43         forkedcontr.h \
44         fs_extras.C \
45         fs_extras.h \
46         getcwd.C \
47         $(COMPRESSION) kill.C \
48         limited_stack.h \
49         lstrings.C \
50         lstrings.h \
51         lyxalgo.h \
52         lyxlib.h \
53         lyxmanip.h \
54         lyxtime.C \
55         lyxtime.h \
56         lyxsum.C \
57         mkdir.C \
58         os.C \
59         os.h \
60         os2_defines.h \
61         os2_errortable.h \
62         path.C \
63         path.h \
64         package.C \
65         package.h \
66         rename.C \
67         socktools.C \
68         socktools.h \
69         std_istream.h \
70         std_ostream.h \
71         systemcall.C \
72         systemcall.h \
73         tempname.C \
74         textutils.h \
75         translator.h \
76         types.h \
77         userinfo.C \
78         userinfo.h \
79         unlink.C
80
81
82 package.C: build_package
83
84 # Solaris sed does not like spaces bewteen the ;-delimited commands
85 build_package: package.C.in
86         @rm -f tmp_package ;\
87         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
88         ABS_BUILDDIR=`cd ../.. && pwd` ;\
89         sed "s,%LYX_DIR%,$(pkgdatadir),;\
90 s,%LOCALEDIR%,$(datadir)/locale,;\
91 s,%TOP_SRCDIR%,$${ABS_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