1 include $(top_srcdir)/config/common.am
5 CLEANFILES += $(BUILT_SOURCES)
7 EXTRA_DIST = package.C.in os_unix.C os_win32.C os_os2.C
9 noinst_LTLIBRARIES = libsupport.la
12 COMPRESSION = gzstream.C gzstream.h
15 BUILT_SOURCES = package.C
17 AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
19 libsupport_la_SOURCES = \
49 $(COMPRESSION) kill.C \
84 package.C: build_package
86 # Solaris sed does not like spaces bewteen the ;-delimited commands
87 build_package: package.C.in
89 ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
90 ABS_BUILDDIR=`cd ../.. && pwd` ;\
91 sed "s,%LYX_DIR%,$(pkgdatadir),;\
92 s,%LOCALEDIR%,$(datadir)/locale,;\
93 s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
94 $(srcdir)/package.C.in > tmp_package ;\
95 if cmp -s tmp_package package.C ; then \
99 mv tmp_package package.C ;\