Makefile.am 8.54 KB
Newer Older
1
2
3
4
5
6
7
# $Id$

# Sympa - SYsteme de Multi-Postage Automatique
#
# Copyright (c) 1997, 1998, 1999 Institut Pasteur & Christophe Wolfhugel
# Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
# 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
8
# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER
9
10
# Copyright 2017, 2018, 2019 The Sympa Community. See the AUTHORS.md file at
# the top-level directory of this distribution and at
11
# <https://github.com/sympa-community/sympa.git>.
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.

26
27
28
nobase_nodist_modules_DATA = \
	Sympa/Constants.pm
nobase_dist_modules_DATA = \
29
30
	Sympa/Internals.pod \
	Sympa/Internals/Workflow.pod
31
nobase_modules_DATA = \
32
	Sympa.pm \
33
	Sympa/Aliases.pm \
34
35
36
	Sympa/Aliases/CheckSMTP.pm \
	Sympa/Aliases/External.pm \
	Sympa/Aliases/Template.pm \
37
	Sympa/Archive.pm \
38
	Sympa/CommandDef.pm \
39
	Conf.pm \
40
	Sympa/ConfDef.pm \
41
	Sympa/Config.pm \
42
	Sympa/Config_XML.pm \
43
	Sympa/Crash.pm \
44
	Sympa/Database.pm \
45
	Sympa/DatabaseDescription.pm \
46
	Sympa/DatabaseDriver.pm \
47
	Sympa/DatabaseDriver/CSV.pm \
48
	Sympa/DatabaseDriver/LDAP.pm \
49
50
51
52
53
	Sympa/DatabaseDriver/MySQL.pm \
	Sympa/DatabaseDriver/ODBC.pm \
	Sympa/DatabaseDriver/Oracle.pm \
	Sympa/DatabaseDriver/Oracle/St.pm \
	Sympa/DatabaseDriver/PostgreSQL.pm \
54
	Sympa/DatabaseDriver/SQLite.pm \
sikeda's avatar
sikeda committed
55
	Sympa/DatabaseManager.pm \
56
57
58
59
60
61
62
63
	Sympa/DataSource.pm \
	Sympa/DataSource/File.pm \
	Sympa/DataSource/LDAP.pm \
	Sympa/DataSource/LDAP2.pm \
	Sympa/DataSource/List.pm \
	Sympa/DataSource/RemoteDump.pm \
	Sympa/DataSource/RemoteFile.pm \
	Sympa/DataSource/SQL.pm \
64
65
	Sympa/Family.pm \
	Sympa/HTML/FormatText.pm \
66
	Sympa/HTMLDecorator.pm \
67
	Sympa/HTMLSanitizer.pm \
68
	Sympa/Language.pm \
69
	Sympa/List.pm \
70
	Sympa/List/Config.pm \
71
	Sympa/List/Users.pm \
72
	Sympa/ListDef.pm \
73
	Sympa/ListOpt.pm \
74
	Sympa/LockedFile.pm \
75
	Sympa/Log.pm \
76
	Sympa/Mailer.pm \
77
	Sympa/Message.pm \
78
79
	Sympa/Message/Plugin.pm \
	Sympa/Message/Plugin/FixEncoding.pm \
80
	Sympa/Message/Template.pm \
81
	Sympa/Process.pm \
82
	Sympa/Regexps.pm \
83
	Sympa/Request.pm \
84
	Sympa/Request/Collection.pm \
85
	Sympa/Request/Handler.pm \
86
	Sympa/Request/Handler/add.pm \
87
	Sympa/Request/Handler/auth.pm \
88
	Sympa/Request/Handler/close_list.pm \
89
	Sympa/Request/Handler/confirm.pm \
90
	Sympa/Request/Handler/create_automatic_list.pm \
91
	Sympa/Request/Handler/create_list.pm \
92
	Sympa/Request/Handler/decl.pm \
93
94
	Sympa/Request/Handler/del.pm \
	Sympa/Request/Handler/distribute.pm \
95
	Sympa/Request/Handler/family_signoff.pm \
96
97
98
99
100
101
	Sympa/Request/Handler/finished.pm \
	Sympa/Request/Handler/get.pm \
	Sympa/Request/Handler/global_remind.pm \
	Sympa/Request/Handler/global_set.pm \
	Sympa/Request/Handler/global_signoff.pm \
	Sympa/Request/Handler/help.pm \
102
	Sympa/Request/Handler/import.pm \
103
	Sympa/Request/Handler/include.pm \
104
105
106
107
108
109
	Sympa/Request/Handler/index.pm \
	Sympa/Request/Handler/info.pm \
	Sympa/Request/Handler/invite.pm \
	Sympa/Request/Handler/last.pm \
	Sympa/Request/Handler/lists.pm \
	Sympa/Request/Handler/modindex.pm \
110
	Sympa/Request/Handler/move_list.pm \
111
	Sympa/Request/Handler/move_user.pm \
112
	Sympa/Request/Handler/open_list.pm \
113
114
115
116
117
118
119
120
	Sympa/Request/Handler/reject.pm \
	Sympa/Request/Handler/remind.pm \
	Sympa/Request/Handler/review.pm \
	Sympa/Request/Handler/set.pm \
	Sympa/Request/Handler/signoff.pm \
	Sympa/Request/Handler/stats.pm \
	Sympa/Request/Handler/subscribe.pm \
	Sympa/Request/Handler/unknown.pm \
121
	Sympa/Request/Handler/update_automatic_list.pm \
122
123
	Sympa/Request/Handler/verify.pm \
	Sympa/Request/Handler/which.pm \
124
	Sympa/Request/Message.pm \
125
126
	Sympa/Robot.pm \
	Sympa/Scenario.pm \
127
	Sympa/Spindle.pm \
128
	Sympa/Spindle/AuthorizeMessage.pm \
129
130
	Sympa/Spindle/AuthorizeRequest.pm \
	Sympa/Spindle/DispatchRequest.pm \
131
	Sympa/Spindle/DistributeMessage.pm \
132
133
134
	Sympa/Spindle/DoCommand.pm \
	Sympa/Spindle/DoForward.pm \
	Sympa/Spindle/DoMessage.pm \
135
	Sympa/Spindle/ProcessArchive.pm \
136
	Sympa/Spindle/ProcessAuth.pm \
137
	Sympa/Spindle/ProcessAutomatic.pm \
138
	Sympa/Spindle/ProcessBounce.pm \
139
	Sympa/Spindle/ProcessDigest.pm \
140
	Sympa/Spindle/ProcessHeld.pm \
141
	Sympa/Spindle/ProcessIncoming.pm \
142
	Sympa/Spindle/ProcessMessage.pm \
143
	Sympa/Spindle/ProcessModeration.pm \
144
	Sympa/Spindle/ProcessOutgoing.pm \
145
	Sympa/Spindle/ProcessRequest.pm \
146
	Sympa/Spindle/ProcessTask.pm \
147
	Sympa/Spindle/ProcessTemplate.pm \
148
	Sympa/Spindle/ResendArchive.pm \
149
	Sympa/Spindle/ToArchive.pm \
150
	Sympa/Spindle/ToAuth.pm \
151
	Sympa/Spindle/ToAuthOwner.pm \
152
	Sympa/Spindle/ToDigest.pm \
153
154
	Sympa/Spindle/ToEditor.pm \
	Sympa/Spindle/ToHeld.pm \
155
	Sympa/Spindle/ToList.pm \
156
	Sympa/Spindle/ToListmaster.pm \
157
	Sympa/Spindle/ToMailer.pm \
158
	Sympa/Spindle/ToModeration.pm \
159
	Sympa/Spindle/ToOutgoing.pm \
160
	Sympa/Spindle/TransformDigestFinal.pm \
161
162
	Sympa/Spindle/TransformIncoming.pm \
	Sympa/Spindle/TransformOutgoing.pm \
163
	Sympa/Spool.pm \
164
	Sympa/Spool/Archive.pm \
165
	Sympa/Spool/Auth.pm \
166
	Sympa/Spool/Automatic.pm \
167
	Sympa/Spool/Bounce.pm \
168
169
	Sympa/Spool/Digest.pm \
	Sympa/Spool/Digest/Collection.pm \
170
	Sympa/Spool/Held.pm \
171
	Sympa/Spool/Incoming.pm \
172
	Sympa/Spool/Listmaster.pm \
173
	Sympa/Spool/Moderation.pm \
174
	Sympa/Spool/Outgoing.pm \
175
	Sympa/Spool/Task.pm \
176
	Sympa/Spool/Topic.pm \
177
	Sympa/Task.pm \
178
	Sympa/Template.pm \
179
	Sympa/Ticket.pm \
180
	Sympa/Tools/Data.pm \
181
	Sympa/Tools/DKIM.pm \
182
	Sympa/Tools/Domains.pm \
183
	Sympa/Tools/File.pm \
184
	Sympa/Tools/Password.pm \
185
	Sympa/Tools/SMIME.pm \
186
187
	Sympa/Tools/Text.pm \
	Sympa/Tools/Time.pm \
188
189
	Sympa/Tracking.pm \
	Sympa/Upgrade.pm \
190
191
	Sympa/User.pm \
	Sympa/WWW/Auth.pm \
192
	Sympa/WWW/FastCGI.pm \
193
194
195
196
197
198
199
200
	Sympa/WWW/Marc.pm \
	Sympa/WWW/Marc/Search.pm \
	Sympa/WWW/Report.pm \
	Sympa/WWW/SharedDocument.pm \
	Sympa/WWW/Session.pm \
	Sympa/WWW/SOAP.pm \
	Sympa/WWW/SOAP/Transport.pm \
	Sympa/WWW/Tools.pm
201

202
man3ext = 3Sympa
203
204
205
206
MAN3POD = \
	$(nobase_nodist_modules_DATA) \
	$(nobase_dist_modules_DATA) \
	$(nobase_modules_DATA)
IKEDA Soji's avatar
IKEDA Soji committed
207
208
man3_MANS =
noinst_DATA = stamp-man3
209

210
211
212
213
EXTRA_DIST = \
	Sympa/Constants.pm.in \
	Sympa/Internals.podpl \
	$(nobase_modules_DATA)
214

IKEDA Soji's avatar
IKEDA Soji committed
215
216
217
218
CLEANFILES = \
	Sympa/Constants.pm \
	Sympa/Internals.pod \
	stamp-man3T stamp-man3 *.$(man3ext)
219
220

Sympa/Constants.pm: Sympa/Constants.pm.in Makefile
IKEDA Soji's avatar
IKEDA Soji committed
221
	@[ -d Sympa ] || mkdir Sympa
222
	@rm -f $@
223
	$(AM_V_GEN)$(SED) \
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
		-e 's|--VERSION--|$(VERSION)|' \
		-e 's|--USER--|$(USER)|' \
		-e 's|--GROUP--|$(GROUP)|' \
		-e 's|--CONFIG--|$(CONFIG)|' \
		-e 's|--WWSCONFIG--|$(WWSCONFIG)|' \
		-e 's|--SENDMAIL_ALIASES--|$(SENDMAIL_ALIASES)|' \
		-e 's|--piddir--|$(piddir)|' \
		-e 's|--expldir--|$(expldir)|' \
		-e 's|--spooldir--|$(spooldir)|' \
		-e 's|--sysconfdir--|$(sysconfdir)|' \
		-e 's|--localedir--|$(localedir)|' \
		-e 's|--libexecdir--|$(libexecdir)|' \
		-e 's|--sbindir--|$(sbindir)|' \
		-e 's|--scriptdir--|$(scriptdir)|' \
		-e 's|--modulesdir--|$(modulesdir)|' \
		-e 's|--defaultdir--|$(defaultdir)|' \
240
241
242
		-e 's|--arcdir--|$(arcdir)|' \
		-e 's|--bouncedir--|$(bouncedir)|' \
		-e 's|--execcgidir--|$(execcgidir)|' \
243
		-e 's|--staticdir--|$(staticdir)|' \
244
245
		-e 's|--cssdir--|$(cssdir)|' \
		-e 's|--picturesdir--|$(picturesdir)|' \
246
		< $(srcdir)/$@.in > $@
247

248
Sympa/Internals.pod: Sympa/Internals.podpl Sympa/Constants.pm.in $(nobase_modules_DATA)
IKEDA Soji's avatar
IKEDA Soji committed
249
	@[ -d Sympa ] || mkdir Sympa
250
251
	@rm -f $@
	$(AM_V_GEN)$(PERL) $< Sympa/Constants.pm.in $(nobase_modules_DATA) > $@
252

IKEDA Soji's avatar
IKEDA Soji committed
253
stamp-man3: $(MAN3POD) Makefile
254
	@test -n "$(man3ext)" || exit 0; \
IKEDA Soji's avatar
IKEDA Soji committed
255
	rm -f *.$(man3ext); \
256
257
258
	for pm in $(MAN3POD); do \
		echo "$$pm" \
		| $(SED) -e 's/\.pm$$//' -e 's/\.pod$$//' -e 's/\//::/g' \
259
		| while read pod; do \
260
			rm -f $$pod.$(man3ext); \
IKEDA Soji's avatar
IKEDA Soji committed
261
262
263
264
265
266
			if test -f $(top_builddir)/src/lib/$$pm; then \
				pmfile=$(top_builddir)/src/lib/$$pm; \
			else \
				pmfile=$(top_srcdir)/src/lib/$$pm; \
			fi; \
			if grep '^=head1 NAME$$' $$pmfile > /dev/null; then \
267
				echo "  GEN   " $$pod.$(man3ext); \
268
				$(POD2MAN) --section=$(man3ext) \
IKEDA Soji's avatar
IKEDA Soji committed
269
					--name $$pod \
270
271
					--center="sympa $(VERSION)" \
					--lax --release="$(VERSION)" \
IKEDA Soji's avatar
IKEDA Soji committed
272
					$$pmfile $$pod.$(man3ext); \
273
			fi; \
274
		done; \
IKEDA Soji's avatar
IKEDA Soji committed
275
276
	done; \
	echo timestamp > stamp-man3T && mv stamp-man3T stamp-man3
277

IKEDA Soji's avatar
IKEDA Soji committed
278
install-data-hook: stamp-man3
279
	$(MKDIR_P) "$(DESTDIR)$(man3dir)"
IKEDA Soji's avatar
IKEDA Soji committed
280
281
	for file in *.$(man3ext); do \
		$(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)"; \
282
283
	done

IKEDA Soji's avatar
IKEDA Soji committed
284
uninstall-hook:
IKEDA Soji's avatar
IKEDA Soji committed
285
	cd "$(DESTDIR)$(man3dir)" && rm -f *.$(man3ext)
IKEDA Soji's avatar
IKEDA Soji committed
286