1 include $(top_srcdir)/config/common.am
5 CLEANFILES += $(BUILT_SOURCES)
7 EXTRA_DIST = package.C.in pch.h \
8 os_cygwin.C os_unix.C os_win32.C os_win32.h
10 noinst_LTLIBRARIES = libsupport.la
12 libsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB)
13 libsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
15 BUILT_SOURCES = $(PCH_FILE) package.C
17 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
18 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
20 libsupport_la_SOURCES = \
92 package.C: build_package
94 # Solaris sed does not like spaces bewteen the ;-delimited commands
95 build_package: package.C.in
97 sed "s,%LYX_DIR%,$(LYX_ABS_INSTALLED_DATADIR),;\
98 s,%LOCALEDIR%,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
99 s,%TOP_SRCDIR%,$(LYX_ABS_TOP_SRCDIR),;\
100 s,%PROGRAM_SUFFIX%,$(program_suffix)," \
101 $(srcdir)/package.C.in > tmp_package ;\
102 if cmp -s tmp_package package.C ; then \
106 mv tmp_package package.C ;\