lyx_mirror/src/client/Makefile.am
Enrico Forestieri 081b58b672 When performing a reverse DVI search and the tmpdir is a symlink, the
DVI viewer passes back the resolved path, such that the search fails,
as internally LyX uses the unresolved path.
This patch fixes this bug by using the new method FileName::realPath
which resolves a path by getting rid of any '.', '..', or symlink
path components.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29504 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 21:51:06 +00:00

54 lines
1.2 KiB
Makefile

include $(top_srcdir)/config/common.am
CLEANFILES += $(man_MANS)
man_MANS = lyxclient.1
bin_PROGRAMS = lyxclient
EXTRA_DIST = lyxclient.1in
AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
lyxclient_LDADD = \
$(top_builddir)/src/support/liblyxsupport.la \
$(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS) $(LIBPSAPI)
# everything below the line containing the single backslashs
# an ugly hack and needed because of the
# linking problems described in ../Makefile.am
# These four objects are linked as object files as they are not
# referenced within the core and therefore are not picked up
# by the linker without looping over libs. We do not want that,
# and in fact libtools seems not able to do that.
SOURCEFILES = \
boost.cpp \
client.cpp \
gettext.cpp \
Messages.cpp
HEADERFILES = \
Messages.h
lyxclient.cpp:
@echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
if MONOLITHIC_CLIENT
AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
BUILT_SOURCES = lyxclient.cpp
lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES)
else
EXTRA_DIST += pch.h
AM_CPPFLAGS += $(PCH_FLAGS)
BUILT_SOURCES = $(PCH_FILE)
lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES)
endif