]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Possibly fix this bug:
[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.cpp.in pch.h \
8         os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
9
10 noinst_LTLIBRARIES = libsupport.la
11
12 libsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB)
13 libsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
14
15 BUILT_SOURCES = $(PCH_FILE) package.C
16
17 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
18 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
19
20 libsupport_la_SOURCES = \
21         FileMonitor.h \
22         FileMonitor.cpp \
23         RandomAccessList.h \
24         abort.cpp \
25         chdir.cpp \
26         convert.cpp \
27         convert.h \
28         copy.cpp \
29         copied_ptr.h \
30         cow_ptr.h \
31         debugstream.h \
32         docstream.cpp \
33         docstream.h \
34         docstring.cpp \
35         docstring.h \
36         environment.h \
37         environment.cpp \
38         ExceptionMessage.h \
39         FileFilterList.cpp \
40         FileFilterList.h \
41         FileName.cpp \
42         FileName.h \
43         filetools.cpp \
44         filetools.h \
45         Forkedcall.cpp \
46         Forkedcall.h \
47         ForkedCallQueue.cpp \
48         ForkedCallQueue.h \
49         ForkedcallsController.cpp \
50         ForkedcallsController.h \
51         fs_extras.cpp \
52         fs_extras.h \
53         getcwd.cpp \
54         kill.cpp \
55         limited_stack.h \
56         lstrings.cpp \
57         lstrings.h \
58         lyxalgo.h \
59         lyxlib.h \
60         lyxmanip.h \
61         lyxtime.cpp \
62         lyxtime.h \
63         lyxsum.cpp \
64         mkdir.cpp \
65         os.cpp \
66         os.h \
67         Path.cpp \
68         Path.h \
69         package.C \
70         Package.h \
71         qstring_helpers.cpp \
72         qstring_helpers.h \
73         rename.cpp \
74         socktools.cpp \
75         socktools.h \
76         std_istream.h \
77         std_ostream.h \
78         Systemcall.cpp \
79         Systemcall.h \
80         tempname.cpp \
81         textutils.cpp \
82         textutils.h \
83         Translator.h \
84         types.h \
85         userinfo.cpp \
86         userinfo.h \
87         unicode.cpp \
88         unicode.h \
89         unlink.cpp
90
91
92 package.C: build_package
93
94 # Solaris sed does not like spaces bewteen the ;-delimited commands
95 build_package: Package.cpp.in
96         @rm -f tmp_package ;\
97         sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
98 s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
99 s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
100 s,@PROGRAM_SUFFIX@,$(program_suffix)," \
101                 $(srcdir)/Package.cpp.in > tmp_package ;\
102         if cmp -s tmp_package package.C ; then \
103                 rm -f tmp_package ;\
104         else \
105                 rm -f package.C ;\
106                 mv tmp_package package.C ;\
107         fi