]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
add specialization for unsigned long, and clean up header file
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 noinst_LTLIBRARIES = libsupport.la
4
5 CLEANFILES += path_defines.C
6
7 EXTRA_DIST = path_defines.C.in os_unix.C os_win32.C os_os2.C
8
9 if USE_COMPRESSION
10 COMPRESSION = gzstream.C gzstream.h
11 endif
12
13 BUILT_SOURCES = path_defines.C
14
15 AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
16
17 libsupport_la_SOURCES = \
18         FileInfo.C \
19         FileInfo.h \
20         FileMonitor.h \
21         FileMonitor.C \
22         abort.C \
23         atoi.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         filefilterlist.C \
32         filefilterlist.h \
33         filename.C \
34         filename.h \
35         filetools.C \
36         filetools.h \
37         forkedcall.C \
38         forkedcall.h \
39         forkedcallqueue.C \
40         forkedcallqueue.h \
41         forkedcontr.C \
42         forkedcontr.h \
43         getcwd.C \
44         globbing.C \
45         globbing.h \
46         $(COMPRESSION) kill.C \
47         limited_stack.h \
48         lstrings.C \
49         lstrings.h \
50         lyxalgo.h \
51         lyxlib.h \
52         lyxmanip.h \
53         lyxtime.C \
54         lyxtime.h \
55         lyxsum.C \
56         mkdir.C \
57         os.C \
58         os.h \
59         os2_defines.h \
60         os2_errortable.h \
61         path.C \
62         path.h \
63         path_defines.C \
64         path_defines.h \
65         putenv.C \
66         rename.C \
67         rmdir.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 path_defines.C: build_path_defines
84
85 build_path_defines: path_defines.C.in
86         @rm -f tmp_path_defines ;\
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,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
92                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
93                 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
94         if cmp -s tmp_path_defines path_defines.C ; then \
95                 rm -f tmp_path_defines ;\
96         else \
97                 rm -f path_defines.C ;\
98                 mv tmp_path_defines path_defines.C ;\
99         fi