diff --git a/caca/Makefile.am b/caca/Makefile.am index cb16a5b..3fdbdaf 100644 --- a/caca/Makefile.am +++ b/caca/Makefile.am @@ -56,6 +56,14 @@ libcaca_la_CPPFLAGS = $(AM_CPPFLAGS) @CACA_CFLAGS@ -D__LIBCACA__ libcaca_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@ libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS) +install-exec-hook: + ln -sf libcaca.so $(DESTDIR)$(libdir)/libcucul.so + ln -sf libcaca.so.0 $(DESTDIR)$(libdir)/libcucul.so.0 + +uninstall-hook: + rm -f $(DESTDIR)$(libdir)/libcucul.so + rm -f $(DESTDIR)$(libdir)/libcucul.so.0 + if USE_PLUGINS plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la plugindir = $(libdir)/caca diff --git a/cxx/Makefile.am b/cxx/Makefile.am index 19a00c2..404ed71 100644 --- a/cxx/Makefile.am +++ b/cxx/Makefile.am @@ -21,3 +21,11 @@ endif cxxtest_SOURCES = cxxtest.cpp cxxtest_LDADD = libcaca++.la ../caca/libcaca.la +install-exec-hook: + ln -sf libcaca++.so $(DESTDIR)$(libdir)/libcucul++.so + ln -sf libcaca++.so.0 $(DESTDIR)$(libdir)/libcucul++.so.0 + +uninstall-hook: + rm -f $(DESTDIR)$(libdir)/libcucul++.so + rm -f $(DESTDIR)$(libdir)/libcucul++.so.0 +