]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
the convert patch
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 SUBDIRS = . tests
4
5 noinst_LTLIBRARIES = libsupport.la
6
7 CLEANFILES += path_defines.C
8
9 EXTRA_DIST = package.C.in os_unix.C os_win32.C os_os2.C
10
11 if USE_COMPRESSION
12 COMPRESSION = gzstream.C gzstream.h
13 endif
14
15 BUILT_SOURCES = package.C
16
17 AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
18
19 libsupport_la_SOURCES = \
20         FileInfo.C \
21         FileInfo.h \
22         FileMonitor.h \
23         FileMonitor.C \
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         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         getcwd.C \
45         globbing.C \
46         globbing.h \
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         putenv.C \
67         rename.C \
68         rmdir.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 build_package: package.C.in
87         @rm -f tmp_package ;\
88         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
89         ABS_BUILDDIR=`cd ../.. && pwd` ;\
90         sed "s,%LYX_DIR%,$(pkgdatadir), ;\
91                 s,%LOCALEDIR%,$(datadir)/locale, ;\
92                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
93                 $(srcdir)/package.C.in > tmp_package ;\
94         if cmp -s tmp_package package.C ; then \
95                 rm -f tmp_package ;\
96         else \
97                 rm -f package.C ;\
98                 mv tmp_package package.C ;\
99         fi