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 = \
59 $(LYXSTRING) lyxsum.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 sed "s,%LYX_DIR%,$(pkgdatadir), ;\
92 s,%LOCALEDIR%,$(datadir)/locale, ;\
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 ;\