aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/Makefile.am
blob: 5b885ea38f6de89929e22066e8a325109c570571 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#
# Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006-2009 Emmanuel Bouthenot <kolter@openics.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat.  If not, see <https://www.gnu.org/licenses/>.
#

AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\"

noinst_LIBRARIES = lib_weechat_plugins.a

lib_weechat_plugins_a_SOURCES = weechat-plugin.h \
                                plugin.c \
                                plugin.h \
                                plugin-api.c \
                                plugin-api.h \
                                plugin-api-info.c \
                                plugin-api-info.h \
                                plugin-config.c \
                                plugin-config.h

noinst_LTLIBRARIES = lib_weechat_plugins_scripts.la

lib_weechat_plugins_scripts_la_SOURCES = plugin-script.c \
                                         plugin-script.h \
                                         plugin-script-api.c \
                                         plugin-script-api.h \
                                         plugin-script-config.c \
                                         plugin-script-config.h

if PLUGIN_ALIAS
alias_dir = alias
endif

if PLUGIN_BUFLIST
buflist_dir = buflist
endif

if PLUGIN_CHARSET
charset_dir = charset
endif

if PLUGIN_EXEC
exec_dir = exec
endif

if PLUGIN_FIFO
fifo_dir = fifo
endif

if PLUGIN_FSET
fset_dir = fset
endif

if PLUGIN_IRC
irc_dir = irc
endif

if PLUGIN_LOGGER
logger_dir = logger
endif

if PLUGIN_RELAY
relay_dir = relay
endif

if PLUGIN_SCRIPT
script_dir = script
endif

if PLUGIN_PERL
perl_dir = perl
endif

if PLUGIN_PYTHON
python_dir = python
endif

if PLUGIN_RUBY
ruby_dir = ruby
endif

if PLUGIN_LUA
lua_dir = lua
endif

if PLUGIN_TCL
tcl_dir = tcl
endif

if PLUGIN_GUILE
guile_dir = guile
endif

if PLUGIN_JAVASCRIPT
javascript_dir = javascript
endif

if PLUGIN_PHP
php_dir = php
endif

if PLUGIN_SPELL
spell_dir = spell
endif

if PLUGIN_TRIGGER
trigger_dir = trigger
endif

if PLUGIN_TYPING
typing_dir = typing
endif

if PLUGIN_XFER
xfer_dir = xfer
endif

SUBDIRS = . \
          $(alias_dir) \
          $(buflist_dir) \
          $(charset_dir) \
          $(exec_dir) \
          $(fifo_dir) \
          $(fset_dir) \
          $(irc_dir) \
          $(logger_dir) \
          $(relay_dir) \
          $(script_dir) \
          $(perl_dir) \
          $(python_dir) \
          $(ruby_dir) \
          $(lua_dir) \
          $(tcl_dir) \
          $(guile_dir) \
          $(javascript_dir) \
          $(php_dir) \
          $(spell_dir) \
          $(trigger_dir) \
          $(typing_dir) \
          $(xfer_dir)

EXTRA_DIST = CMakeLists.txt

# install plugin header

install-data-hook:
	$(INSTALL) -d $(DESTDIR)/$(includedir)/$(PACKAGE)
	$(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h $(DESTDIR)/$(includedir)/$(PACKAGE)

# uninstall plugin header

uninstall-hook:
	$(RM) $(DESTDIR)/$(includedir)/$(PACKAGE)/weechat-plugin.h