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