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 \
84 path_defines.C: build_path_defines
86 build_path_defines: path_defines.C.in
87 @rm -f tmp_path_defines ;\
88 ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
89 ABS_BUILDDIR=`cd ../.. && pwd` ;\
90 sed "s,%LYX_DIR%,$(pkgdatadir), ;\
91 s,%LOCALEDIR%,$(datadir)/locale, ;\
92 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
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 ;\
98 rm -f path_defines.C ;\
99 mv tmp_path_defines path_defines.C ;\