1 include $(top_srcdir)/config/common.am
3 noinst_LTLIBRARIES = libsupport.la
5 CLEANFILES = path_defines.C
7 INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
9 EXTRA_DIST = path_defines.C.in lyxstring.C lyxstring.h \
10 os_unix.C os_win32.C os_os2.C
13 LYXSTRING = lyxstring.C lyxstring.h
17 COMPRESSION = gzstream.C gzstream.h
20 BUILT_SOURCES = path_defines.C
22 libsupport_la_SOURCES = \
48 $(COMPRESSION) kill.C \
58 $(LYXSTRING) lyxsum.C \
92 path_defines.C: build_path_defines
94 build_path_defines: path_defines.C.in
95 @rm -f tmp_path_defines ;\
96 ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
97 ABS_BUILDDIR=`cd ../.. && pwd` ;\
98 sed "s,%LYX_DIR%,$(pkgdatadir), ;\
99 s,%LOCALEDIR%,$(datadir)/locale, ;\
100 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
101 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
102 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
103 if cmp -s tmp_path_defines path_defines.C ; then \
104 rm -f tmp_path_defines ;\
106 rm -f path_defines.C ;\
107 mv tmp_path_defines path_defines.C ;\