]> git.lyx.org Git - features.git/blob - src/support/Makefile.am
All day for not very much...
[features.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 nodist_include_HEADERS = path_defines.C
4 noinst_LTLIBRARIES = libsupport.la
5
6 CLEANFILES = path_defines.C
7
8 INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
9
10 EXTRA_DIST = path_defines.C.in lyxstring.C lyxstring.h \
11              os_unix.C os_win32.C os_os2.C
12
13 if USE_LYXSTRING
14 LYXSTRING = lyxstring.C lyxstring.h
15 endif
16
17 BUILT_SOURCES = path_defines.C
18
19 libsupport_la_SOURCES = \
20         BoostFormat.h \
21         DebugStream.C \
22         DebugStream.h \
23         FileInfo.C \
24         FileInfo.h \
25         FileMonitor.h \
26         FileMonitor.C \
27         LAssert.C \
28         LAssert.h \
29         LIstream.h \
30         LOstream.h \
31         os.C \
32         os.h \
33         abort.C \
34         atoi.C \
35         boost-inst.C \
36         chdir.C \
37         copy.C \
38         filename.C \
39         filename.h \
40         filetools.C \
41         filetools.h \
42         forkedcall.C \
43         forkedcall.h \
44         forkedcallqueue.C \
45         forkedcallqueue.h \
46         forkedcontr.C \
47         forkedcontr.h \
48         getcwd.C \
49         kill.C \
50         limited_stack.h \
51         lstrings.C \
52         lstrings.h \
53         lyxalgo.h \
54         lyxfunctional.h \
55         lyxlib.h \
56         lyxmanip.h \
57         lyxtime.C \
58         lyxtime.h \
59         $(LYXSTRING) lyxsum.C \
60         mkdir.C \
61         nt_defines.h \
62         os2_defines.h \
63         os2_errortable.h \
64         path.C \
65         path.h \
66         path_defines.C \
67         putenv.C \
68         rename.C \
69         rmdir.C \
70         snprintf.h \
71         snprintf.c \
72         sstream.h \
73         systemcall.C \
74         systemcall.h \
75         tempname.C \
76         textutils.h \
77         tostr.h \
78         tostr.C \
79         translator.h \
80         types.h \
81         userinfo.C \
82         userinfo.h \
83         unlink.C
84
85
86 path_defines.C: build_path_defines
87
88 build_path_defines: path_defines.C.in
89         @rm -f tmp_path_defines ;\
90         ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
91         sed "s,%LYX_DIR%,$(pkgdatadir), ;\
92                 s,%LOCALEDIR%,$(datadir)/locale, ;\
93                 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
94                 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
95         if cmp -s tmp_path_defines path_defines.C ; then \
96                 rm -f tmp_path_defines ;\
97         else \
98                 rm -f path_defines.C ;\
99                 mv tmp_path_defines path_defines.C ;\
100         fi