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 os_unix.C os_win32.C os_os2.C
12 COMPRESSION = gzstream.C gzstream.h
15 BUILT_SOURCES = path_defines.C
17 AM_CXXFLAGS = $(PCH_FLAGS)
19 libsupport_la_SOURCES = \
44 $(COMPRESSION) kill.C \
86 path_defines.C: build_path_defines
88 build_path_defines: path_defines.C.in
89 @rm -f tmp_path_defines ;\
90 ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
91 ABS_BUILDDIR=`cd ../.. && pwd` ;\
92 sed "s,%LYX_DIR%,$(pkgdatadir), ;\
93 s,%LOCALEDIR%,$(datadir)/locale, ;\
94 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
95 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
96 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
97 if cmp -s tmp_path_defines path_defines.C ; then \
98 rm -f tmp_path_defines ;\
100 rm -f path_defines.C ;\
101 mv tmp_path_defines path_defines.C ;\