annotate libpurple/plugins/perl/Makefile.am @ 16591:ce049678a67b

soname versioning of libpurple. Should help resolve debian bug 421282 All version control is within configure.ac now Adjust the define for purple_version_suffix as appropriate: [devel] - normal development periods [betaN] - for beta releases [] - for releases Follow the instructions in configure.ac to set the version number depending on how the API has changed (ie. following our normal version numbering!) version.h is auto-generated now Added purple_version_check(), purple_major_version, purple_minor_version, & purple_micro_version for run-time version comparisons in addition to the existing compile time macros. libpurple Plugins moved again, this time to: $(libdir)/purple-$PURPLE_MAJOR_VERSION This will allow parallel installations of different major libpurple versions in the future should someone wish to.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 28 Apr 2007 16:55:31 +0000
parents ca09f5b57672
children 39c7bb133a9f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16591
ce049678a67b soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <stu@nosnilmot.com>
parents: 16365
diff changeset
1 plugindir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
2
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
3 perl_dirs = common
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
4
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
5 plugin_LTLIBRARIES = perl.la
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
6
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
7 perl_la_LDFLAGS = -module -avoid-version
16364
a5a64fcad0ca Kill the libpurpleperl hack library and move the init stuff to perl.so itself.
Etan Reisner <pidgin@unreliablesource.net>
parents: 16285
diff changeset
8 perl_la_LIBADD = $(GLIB_LIBS) $(PERL_LIBS)
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
9 perl_la_SOURCES = \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
10 perl.c \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
11 perl-common.c \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
12 perl-common.h \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
13 perl-handlers.c \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
14 perl-handlers.h
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
15
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
16 perl_la_DEPENDENCIES = \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
17 .libs/libperl_orig.a \
16364
a5a64fcad0ca Kill the libpurpleperl hack library and move the init stuff to perl.so itself.
Etan Reisner <pidgin@unreliablesource.net>
parents: 16285
diff changeset
18 .libs/DynaLoader.a
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
19
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
20 .libs/libperl_orig.a:
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
21 @mkdir -p .libs
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
22 @rm -f .libs/libperl_orig.a
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
23 @if [ x$(LIBPERL_A) = x ]; then \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
24 touch .libs/libperl_orig.a; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
25 else \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
26 $(LN_S) $(LIBPERL_A) .libs/libperl_orig.a; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
27 fi
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
28
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
29 .libs/DynaLoader.a:
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
30 @mkdir -p .libs
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
31 @rm -f .libs/DynaLoader.a
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
32 @if [ x$(DYNALOADER_A) = x ]; then \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
33 touch .libs/DynaLoader.a; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
34 else \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
35 $(LN_S) $(DYNALOADER_A) .libs/DynaLoader.a; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
36 fi
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
37
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
38 common_sources = \
16365
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
39 common/Account.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
40 common/AccountOpts.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
41 common/BuddyIcon.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
42 common/BuddyList.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
43 common/Cipher.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
44 common/Cmds.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
45 common/Core.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
46 common/Connection.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
47 common/Conversation.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
48 common/Debug.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
49 common/FT.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
50 common/ImgStore.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
51 common/Log.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
52 common/Makefile.PL.in \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
53 common/Network.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
54 common/Notify.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
55 common/Plugin.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
56 common/PluginPref.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
57 common/Pounce.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
58 common/Prefs.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
59 common/Privacy.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
60 common/Proxy.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
61 common/Prpl.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
62 common/Purple.pm \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
63 common/Purple.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
64 common/Request.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
65 common/Roomlist.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
66 common/SSLConn.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
67 common/SavedStatuses.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
68 common/Server.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
69 common/Signal.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
70 common/Sound.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
71 common/Status.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
72 common/Stringref.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
73 common/Util.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
74 common/XMLNode.xs \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
75 common/module.h \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
76 common/typemap \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
77 common/fallback/const-c.inc \
ca09f5b57672 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <pidgin@unreliablesource.net>
parents: 16364
diff changeset
78 common/fallback/const-xs.inc
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
79
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
80 EXTRA_DIST = \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
81 Makefile.mingw \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
82 common/Makefile.mingw \
16364
a5a64fcad0ca Kill the libpurpleperl hack library and move the init stuff to perl.so itself.
Etan Reisner <pidgin@unreliablesource.net>
parents: 16285
diff changeset
83 $(common_sources)
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
84
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
85 common/Makefile: common/Makefile.PL
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
86 @if test "x${top_srcdir}" != "x${top_builddir}"; then \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
87 for f in ${common_sources}; do \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
88 ${LN_S} -f ../${srcdir}/$$f $$f; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
89 done; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
90 fi
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
91 @cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS)
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
92
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
93 common/Makefile.PL: common/Makefile.PL.in $(top_builddir)/config.status
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
94 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
95
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
96 all-local: common/Makefile
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
97 @for dir in $(perl_dirs); do \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
98 cd $$dir && \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
99 if [ ! -f Makefile ]; then \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
100 $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
101 fi && \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
102 ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
103 $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
104 cd ..; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
105 done
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
106
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
107 install-exec-local:
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
108 @for dir in $(perl_dirs); do \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
109 cd $$dir; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
110 $(MAKE) install; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
111 cd ..; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
112 done
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
113
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
114 # Evil Hack (TM)
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
115 # ... which doesn't work with DESTDIR installs. FIXME?
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
116 uninstall-local:
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
117 @for dir in $(perl_dirs); do \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
118 cd $$dir && \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
119 `$(MAKE) uninstall | grep unlink | sed -e 's#/usr#${prefix}#' -e 's#unlink#rm -f#'` && \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
120 cd ..; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
121 done
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
122
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
123 clean-generic:
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
124 @for dir in $(perl_dirs); do \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
125 cd $$dir; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
126 $(MAKE) clean; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
127 cd ..; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
128 done
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
129 rm -f *.so
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
130
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
131 distclean-generic:
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
132 @for dir in $(perl_dirs); do \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
133 cd $$dir; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
134 $(MAKE) realclean; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
135 rm -f Makefile.PL; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
136 rm -f Makefile.old; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
137 rm -f Makefile; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
138 cd ..; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
139 done
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
140
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
141 @rm -f Makefile
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
142 @rm -f common/const-c.inc common/const-xs.inc
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
143
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
144 @if test "x${top_srcdir}" != "x${top_builddir}"; then \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
145 for f in ${common_sources}; do \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
146 ${LN_S} -f ../${srcdir}/$$f $$f; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
147 done; \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
148 fi
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
149
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
150 AM_CPPFLAGS = \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
151 -DVERSION=\"$(VERSION)\" \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
152 -I$(top_srcdir) \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
153 -I$(top_srcdir)/libpurple \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
154 $(DEBUG_CFLAGS) \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
155 $(GLIB_CFLAGS) \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
156 $(PLUGIN_CFLAGS) \
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
157 $(PERL_CFLAGS)