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