Makefile.am revision 182c9b158495b55212651ed5e57d0d486a6ba781
include $(top_srcdir)/Makefile.am.inc
SUBDIRS = \
docs
noinst_PROGRAMS = \
test-libudev
test_libudev_SOURCES = \
test_libudev_LDADD = \
lib_LTLIBRARIES = \
include_HEADERS =\
libudev_la_SOURCES =\
LT_CURRENT=4
LT_REVISION=1
LT_AGE=4
libudev_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-symbols $(top_srcdir)/libudev/exported_symbols
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
EXTRA_DIST = \
exported_symbols
# move lib from $(libdir) to $(rootlib_execdir) and update devel link, if needed
install-exec-hook:
if test "$(libdir)" != "$(rootlib_execdir)"; then \
mkdir -p $(DESTDIR)$(rootlib_execdir) && \
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libudev.so) && \
so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
ln -sf $$so_img_rel_target_prefix$(rootlib_execdir)/$$so_img_name $(DESTDIR)$(libdir)/libudev.so && \
mv $(DESTDIR)$(libdir)/libudev.so.* $(DESTDIR)$(rootlib_execdir); \
fi
uninstall-hook:
rm -f $(DESTDIR)$(rootlib_execdir)/libudev.so*