source: libcaca/trunk/cxx/Makefile.am @ 2854

Last change on this file since 2854 was 2854, checked in by Sam Hocevar, 11 years ago

Fix for the libcucul symlinks installation, courtesy of Ben Wiley Sittler.

File size: 1.1 KB
Line 
1# $Id: Makefile.am 552 2006-04-13 16:10:16Z jylam $
2
3AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/caca -I../caca
4
5if USE_CXX
6pkgconfig_DATA = caca++.pc
7pkgconfigdir = $(libdir)/pkgconfig
8
9include_HEADERS = caca++.h
10lib_LTLIBRARIES = libcaca++.la
11endif
12
13libcaca___la_SOURCES = caca++.cpp caca++.h
14libcaca___la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
15libcaca___la_LIBADD = ../caca/libcaca.la
16
17if USE_CXX
18noinst_PROGRAMS = cxxtest
19endif
20
21cxxtest_SOURCES = cxxtest.cpp
22cxxtest_LDADD = libcaca++.la ../caca/libcaca.la
23
24install-exec-local:
25        $(mkinstalldirs) $(DESTDIR)$(libdir)
26        . libcaca++.la; \
27        for x in $$library_names; do \
28          ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
29        done
30
31install-data-local:
32        $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
33        ln -sf caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc
34
35uninstall-local:
36        . libcaca++.la; \
37        for x in $$library_names; do \
38          rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
39        done
40        rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
41        rm -f $(DESTDIR)$(pkgconfigdir)/cucul++.pc
42        rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
43
Note: See TracBrowser for help on using the repository browser.