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 = \
46 $(COMPRESSION) kill.C \
56 $(LYXSTRING) lyxsum.C \
90 path_defines.C: build_path_defines
92 build_path_defines: path_defines.C.in
93 @rm -f tmp_path_defines ;\
94 ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
95 ABS_BUILDDIR=`cd ../.. && pwd` ;\
96 sed "s,%LYX_DIR%,$(pkgdatadir), ;\
97 s,%LOCALEDIR%,$(datadir)/locale, ;\
98 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
99 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
100 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
101 if cmp -s tmp_path_defines path_defines.C ; then \
102 rm -f tmp_path_defines ;\
104 rm -f path_defines.C ;\
105 mv tmp_path_defines path_defines.C ;\