Browse Source

End of the libcucul merge: add symbolic links where appropriate.

tags/v0.99.beta14
Sam Hocevar sam 16 years ago
parent
commit
02e29b8cdc
3 changed files with 24 additions and 4 deletions
  1. +10
    -2
      caca/Makefile.am
  2. +10
    -2
      cxx/Makefile.am
  3. +4
    -0
      doc/Makefile.am

+ 10
- 2
caca/Makefile.am View File

@@ -56,13 +56,21 @@ 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:
install-exec-local:
$(mkinstalldirs) $(DESTDIR)$(libdir)
ln -sf libcaca.so $(DESTDIR)$(libdir)/libcucul.so
ln -sf libcaca.so.0 $(DESTDIR)$(libdir)/libcucul.so.0

uninstall-hook:
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc

uninstall-local:
rm -f $(DESTDIR)$(libdir)/libcucul.so
rm -f $(DESTDIR)$(libdir)/libcucul.so.0
rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true

if USE_PLUGINS
plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la


+ 10
- 2
cxx/Makefile.am View File

@@ -21,11 +21,19 @@ endif
cxxtest_SOURCES = cxxtest.cpp
cxxtest_LDADD = libcaca++.la ../caca/libcaca.la

install-exec-hook:
install-exec-local:
$(mkinstalldirs) $(DESTDIR)$(libdir)
ln -sf libcaca++.so $(DESTDIR)$(libdir)/libcucul++.so
ln -sf libcaca++.so.0 $(DESTDIR)$(libdir)/libcucul++.so.0

uninstall-hook:
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
ln -sf caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc

uninstall-local:
rm -f $(DESTDIR)$(libdir)/libcucul++.so
rm -f $(DESTDIR)$(libdir)/libcucul++.so.0
rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
rm -f $(DESTDIR)$(pkgconfigdir)/cucul++.pc
rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true


+ 4
- 0
doc/Makefile.am View File

@@ -43,6 +43,7 @@ clean-local:

install-data-local:
if BUILD_DOCUMENTATION
ln -s libcaca-dev $(DESTDIR)$(datadir)/doc/libcucul-dev
$(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
$(DESTDIR)$(datadir)/doc/libcaca-dev/html
@@ -56,3 +57,6 @@ if BUILD_DOCUMENTATION
ln -s cacafire.1 $(DESTDIR)$(mandir)/man1/cacademo.1
endif

uninstall-local:
rm -f $(DESTDIR)$(datadir)/doc/libcucul-dev


Loading…
Cancel
Save