1 include $(top_srcdir)/config/common.am
3 noinst_LTLIBRARIES = libsupport.la
5 CLEANFILES += path_defines.C
7 EXTRA_DIST = path_defines.C.in os_unix.C os_win32.C os_os2.C
10 COMPRESSION = gzstream.C gzstream.h
13 BUILT_SOURCES = path_defines.C
15 AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
17 libsupport_la_SOURCES = \
44 $(COMPRESSION) kill.C \
83 path_defines.C: build_path_defines
85 build_path_defines: path_defines.C.in
86 @rm -f tmp_path_defines ;\
87 ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
88 ABS_BUILDDIR=`cd ../.. && pwd` ;\
89 sed "s,%LYX_DIR%,$(pkgdatadir), ;\
90 s,%LOCALEDIR%,$(datadir)/locale, ;\
91 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
92 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
93 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
94 if cmp -s tmp_path_defines path_defines.C ; then \
95 rm -f tmp_path_defines ;\
97 rm -f path_defines.C ;\
98 mv tmp_path_defines path_defines.C ;\