Mercurial > pidgin
annotate libpurple/plugins/perl/Makefile.am @ 24044:1f92d4aa8f3b
Return FALSE when a perl plugin cannot be loaded.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 01 Sep 2008 16:45:01 +0000 |
parents | dd8f07e6f73e |
children | f89bdd34c9f1 |
rev | line source |
---|---|
16583
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) |
15373
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) |
15373
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 |
15373
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 \ |
23931
dd8f07e6f73e
I forgot to add these new files to Makefile.am
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23145
diff
changeset
|
43 common/Certificate.xs \ |
16365
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/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
|
45 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
|
46 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
|
47 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
|
48 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
|
49 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
|
50 common/FT.xs \ |
23931
dd8f07e6f73e
I forgot to add these new files to Makefile.am
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23145
diff
changeset
|
51 common/Idle.xs \ |
16365
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/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
|
53 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
|
54 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
|
55 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
|
56 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
|
57 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
|
58 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
|
59 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
|
60 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
|
61 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
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 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
|
68 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
|
69 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
|
70 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
|
71 common/Signal.xs \ |
23145
66057702ae5d
Expose smiley API to perl plugins.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22736
diff
changeset
|
72 common/Smiley.xs \ |
16365
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/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
|
74 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
|
75 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
|
76 common/Util.xs \ |
23931
dd8f07e6f73e
I forgot to add these new files to Makefile.am
Daniel Atallah <daniel.atallah@gmail.com>
parents:
23145
diff
changeset
|
77 common/Whiteboard.xs \ |
16365
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/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
|
79 common/module.h \ |
16739
39c7bb133a9f
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <pidgin@unreliablesource.net>
parents:
16583
diff
changeset
|
80 common/typemap |
39c7bb133a9f
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <pidgin@unreliablesource.net>
parents:
16583
diff
changeset
|
81 # common/fallback/const-c.inc \ |
39c7bb133a9f
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <pidgin@unreliablesource.net>
parents:
16583
diff
changeset
|
82 # common/fallback/const-xs.inc |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
83 |
16792
42740b3fe5a2
Add the function_list.pl script to the dist tarball. It's useful for people
Etan Reisner <pidgin@unreliablesource.net>
parents:
16739
diff
changeset
|
84 perl_scripts = \ |
17102
8ebd53003230
nosnilmot: EXTRA_DIST it!
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16916
diff
changeset
|
85 scripts/function_list.pl \ |
8ebd53003230
nosnilmot: EXTRA_DIST it!
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16916
diff
changeset
|
86 scripts/signals-test.pl |
16792
42740b3fe5a2
Add the function_list.pl script to the dist tarball. It's useful for people
Etan Reisner <pidgin@unreliablesource.net>
parents:
16739
diff
changeset
|
87 |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
88 EXTRA_DIST = \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
89 Makefile.mingw \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
90 common/Makefile.mingw \ |
16792
42740b3fe5a2
Add the function_list.pl script to the dist tarball. It's useful for people
Etan Reisner <pidgin@unreliablesource.net>
parents:
16739
diff
changeset
|
91 $(common_sources) \ |
42740b3fe5a2
Add the function_list.pl script to the dist tarball. It's useful for people
Etan Reisner <pidgin@unreliablesource.net>
parents:
16739
diff
changeset
|
92 $(perl_scripts) |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
93 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
94 common/Makefile: common/Makefile.PL |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
95 @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
|
96 for f in ${common_sources}; do \ |
22736
bcaed4d5522b
Fix make distcheck (which broke from an earlier fix for make when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22715
diff
changeset
|
97 srcloc=${srcdir}; \ |
bcaed4d5522b
Fix make distcheck (which broke from an earlier fix for make when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22715
diff
changeset
|
98 case $$srcloc in /*) ;; *) srcloc=../${srcdir} ;; esac; \ |
bcaed4d5522b
Fix make distcheck (which broke from an earlier fix for make when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22715
diff
changeset
|
99 ${LN_S} -f $$srcloc/$$f $$f; \ |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
100 done; \ |
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 @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
|
103 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
104 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
|
105 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
|
106 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
107 all-local: common/Makefile |
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 if [ ! -f Makefile ]; then \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
111 $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
112 fi && \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
113 ($(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
|
114 $(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
|
115 cd ..; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
116 done |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
117 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
118 install-exec-local: |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
119 @for dir in $(perl_dirs); do \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
120 cd $$dir; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
121 $(MAKE) install; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
122 cd ..; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
123 done |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
124 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
125 # Evil Hack (TM) |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
126 # ... 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
|
127 uninstall-local: |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
128 @for dir in $(perl_dirs); do \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
129 cd $$dir && \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
130 `$(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
|
131 cd ..; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
132 done |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
133 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
134 clean-generic: |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
135 @for dir in $(perl_dirs); do \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
136 cd $$dir; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
137 $(MAKE) clean; \ |
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 rm -f *.so |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
141 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
142 distclean-generic: |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
143 @for dir in $(perl_dirs); do \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
144 cd $$dir; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
145 $(MAKE) realclean; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
146 rm -f Makefile.PL; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
147 rm -f Makefile.old; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
148 rm -f Makefile; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
149 cd ..; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
150 done |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
151 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
152 @rm -f Makefile |
16739
39c7bb133a9f
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <pidgin@unreliablesource.net>
parents:
16583
diff
changeset
|
153 # @rm -f common/const-c.inc common/const-xs.inc |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
154 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
155 @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
|
156 for f in ${common_sources}; do \ |
22736
bcaed4d5522b
Fix make distcheck (which broke from an earlier fix for make when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22715
diff
changeset
|
157 srcloc=${srcdir}; \ |
bcaed4d5522b
Fix make distcheck (which broke from an earlier fix for make when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22715
diff
changeset
|
158 case $$srcloc in /*) ;; *) srcloc=../${srcdir} ;; esac; \ |
bcaed4d5522b
Fix make distcheck (which broke from an earlier fix for make when
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22715
diff
changeset
|
159 ${LN_S} -f $$srcloc/$$f $$f; \ |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
160 done; \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
161 fi |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
162 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
163 AM_CPPFLAGS = \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
164 -I$(top_srcdir) \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
165 -I$(top_srcdir)/libpurple \ |
16754
441945083737
Now that version.h is a generated source file, we need to add
Stu Tomlinson <stu@nosnilmot.com>
parents:
16739
diff
changeset
|
166 -I$(top_builddir)/libpurple \ |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
167 $(DEBUG_CFLAGS) \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
168 $(GLIB_CFLAGS) \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
169 $(PLUGIN_CFLAGS) \ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
170 $(PERL_CFLAGS) |