1 include $(top_srcdir)/config/common.am
3 nodist_include_HEADERS = path_defines.C
4 noinst_LTLIBRARIES = libsupport.la
6 CLEANFILES = path_defines.C
8 INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
10 EXTRA_DIST = path_defines.C.in lyxstring.C lyxstring.h \
11 os_unix.C os_win32.C os_os2.C
14 LYXSTRING = lyxstring.C lyxstring.h
18 COMPRESSION = gzstream.C gzstream.C
21 BUILT_SOURCES = path_defines.C
23 libsupport_la_SOURCES = \
53 $(COMPRESSION) kill.C \
63 $(LYXSTRING) lyxsum.C \
91 path_defines.C: build_path_defines
93 build_path_defines: path_defines.C.in
94 @rm -f tmp_path_defines ;\
95 ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
96 ABS_BUILDDIR=`cd ../.. && pwd` ;\
97 sed "s,%LYX_DIR%,$(pkgdatadir), ;\
98 s,%LOCALEDIR%,$(datadir)/locale, ;\
99 s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\
100 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
101 $(srcdir)/path_defines.C.in > tmp_path_defines ;\
102 if cmp -s tmp_path_defines path_defines.C ; then \
103 rm -f tmp_path_defines ;\
105 rm -f path_defines.C ;\
106 mv tmp_path_defines path_defines.C ;\