summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 75f2fdbe86a9fbe690c61c339644b326627e9164 (plain)
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
EXTRA_DIST =
CLEANFILES =

@distribution@
@common@

# With or Without openpkg (w_or_wo_openpkg) definition
if OPENPKG
	w_or_wo_openpkg = sed -e 's/^@OPENPKG@//;/^@WITHOUT_OPENPKG@/d'
else
	w_or_wo_openpkg = sed -e 's/^@WITHOUT_OPENPKG@//;/^@OPENPKG@/d'
endif

distclean-local:
	rm -rf $(srcdir)/autom4te*.cache

noinst_HEADERS = @PACKAGE@.spec

WSTOPLEVEL_FILES = www/favicon.png

wstopleveldir = $(webserver_document_root)$(webserver_web_prefix)
dist_wstoplevel_DATA = $(WSTOPLEVEL_FILES)

WSKOLAB_FILES = www/admin/index.php \
	www/admin/logout.php \
	www/admin/print.css  \
	www/admin/style.css 

wskolabdir = $(webserver_document_root)$(kolab_wui)
wskolab_DATA = $(WSKOLAB_FILES)
EXTRA_DIST += www/admin/style.css \
	www/admin/print.css \
	www/admin/logout.php

EXTRA_DIST += $(WSKOLAB_FILES)

WSADDRESSBOOK_FILES = www/admin/addressbook/addr.php \
	www/admin/addressbook/index.php

wsaddressbookdir   = $(wskolabdir)/addressbook
wsaddressbook_DATA = $(WSADDRESSBOOK_FILES)
EXTRA_DIST += $(WSADDRESSBOOK_FILES)

WSADMINISTRATOR_FILES = www/admin/administrator/admin.php \
	www/admin/administrator/index.php

wsadminstratordir = $(wskolabdir)/administrator
wsadminstrator_DATA = $(WSADMINISTRATOR_FILES)
EXTRA_DIST += $(WSADMINISTRATOR_FILES)

WSDISTRIBUTIONLIST_FILES = www/admin/distributionlist/index.php \
	www/admin/distributionlist/list.php

wsdistributionlistdir = $(wskolabdir)/distributionlist
wsdistributionlist_DATA = $(WSDISTRIBUTIONLIST_FILES)
EXTRA_DIST += $(WSDISTRIBUTIONLIST_FILES)

WSABOUT_FILES = www/admin/kolab/erfrakon.php \
	www/admin/kolab/index.php \
	www/admin/kolab/intevation.php \
	www/admin/kolab/codefusion.php \
	www/admin/kolab/kdab.php \
	www/admin/kolab/kde.php \
	www/admin/kolab/versions.php

wsaboutdir = $(wskolabdir)/kolab
wsabout_DATA = $(WSABOUT_FILES)
EXTRA_DIST += $(WSABOUT_FILES)

WSMAINTAINER_FILES = www/admin/maintainer/maintainer.php \
	www/admin/maintainer/index.php

wsmaintainerdir = $(wskolabdir)/maintainer
wsmaintainer_DATA = $(WSMAINTAINER_FILES)
EXTRA_DIST += $(WSMAINTAINER_FILES)

WSDOMAINMAINTAINER_FILES = www/admin/domainmaintainer/domainmaintainer.php \
	www/admin/domainmaintainer/index.php

wsdomainmaintainerdir = $(wskolabdir)/domainmaintainer
wsdomainmaintainer_DATA = $(WSDOMAINMAINTAINER_FILES)
EXTRA_DIST += $(WSDOMAINMAINTAINER_FILES)

WSPICS_FILES = www/admin/pics/erfrakon.png \
	www/admin/pics/codefusion.png \
	www/admin/pics/intevation_logo.png \
	www/admin/pics/kdab.png \
	www/admin/pics/kde.png \
	www/admin/pics/kolab_logo.png

wspicsdir = $(wskolabdir)/pics
dist_wspics_DATA = $(WSPICS_FILES)

wssettingsdir = $(wskolabdir)/settings
wssettings_DATA = www/admin/settings/index.php
EXTRA_DIST += www/admin/settings/index.php

WSSHAREDFOLDER_FILES = www/admin/sharedfolder/sf.php \
	www/admin/sharedfolder/index.php

wssharedfolderdir = $(wskolabdir)/sharedfolder
wssharedfolder_DATA = $(WSSHAREDFOLDER_FILES)
EXTRA_DIST += $(WSSHAREDFOLDER_FILES)

WSUSER_FILES = www/admin/user/forward.php \
	www/admin/user/index.php \
	www/admin/user/user.php \
	www/admin/user/vacation.php \
	www/admin/user/deliver.php

wsuserdir = $(wskolabdir)/user
wsuser_DATA = $(WSUSER_FILES)
EXTRA_DIST += $(WSUSER_FILES)

phpkolabdir = $(phplibdir2)/$(kolab_php_module_prefix)admin

PHP_INCLUDES = lib/KolabAdmin/include/menu.php \
	lib/KolabAdmin/include/auth.class.php \
	lib/KolabAdmin/include/authenticate.php \
	lib/KolabAdmin/include/debug.php \
	lib/KolabAdmin/include/form.class.php \
	lib/KolabAdmin/include/headers.php \
	lib/KolabAdmin/include/ldap.class.php \
	lib/KolabAdmin/include/locale.php \
	lib/KolabAdmin/include/mysmarty.php \
	lib/KolabAdmin/include/Sieve.php \
	lib/KolabAdmin/include/passwd.php

phpincludesdir = $(phplibdir)/KolabAdmin/include
phpincludes_DATA = $(PHP_INCLUDES)
EXTRA_DIST += $(PHP_INCLUDES)


PEARKA_FILES = lib/KolabAdmin/Ldap.php \
	lib/KolabAdmin/Sieve.php
pearkadir = $(phplibdir)/KolabAdmin
dist_pearka_DATA = $(PEARKA_FILES)

PEARKA_SIEVE_FILES = lib/KolabAdmin/Sieve/Script.php \
	lib/KolabAdmin/Sieve/Segment.php
pearkasievedir = $(phplibdir)/KolabAdmin/Sieve
dist_pearkasieve_DATA = $(PEARKA_SIEVE_FILES)

PEARKA_SIEVE_SEGMENT_FILES = lib/KolabAdmin/Sieve/Segment/Delivery.php \
	lib/KolabAdmin/Sieve/Segment/Forward.php \
	lib/KolabAdmin/Sieve/Segment/Vacation.php
pearkasievesegmentdir = $(phplibdir)/KolabAdmin/Sieve/Segment
dist_pearkasievesegment_DATA = $(PEARKA_SIEVE_SEGMENT_FILES)

PHP_TEMPLATES = data/templates/maintainerdeleted.tpl \
	data/templates/kde.tpl \
	data/templates/addrdeleted.tpl \
	data/templates/userdeleted.tpl \
	data/templates/sfdeleted.tpl \
	data/templates/distlistdeleted.tpl \
	data/templates/addresslist.tpl \
	data/templates/sflistall.tpl \
	data/templates/erfrakon.tpl \
	data/templates/codefusion.tpl \
	data/templates/adminlistall.tpl \
	data/templates/login.tpl \
	data/templates/maintainerlistall.tpl \
	data/templates/domainmaintainerlistall.tpl \
	data/templates/kolab.tpl \
	data/templates/addrlistall.tpl \
	data/templates/forward.tpl \
	data/templates/deliver.tpl \
	data/templates/distlistall.tpl \
	data/templates/kdab.tpl \
	data/templates/userlistall.tpl \
	data/templates/userlisterror.tpl \
	data/templates/settings.tpl \
	data/templates/page.tpl \
	data/templates/welcome.tpl \
	data/templates/systemaliasnagscreen.tpl \
	data/templates/intevation.tpl \
	data/templates/vacation.tpl \
	data/templates/createuser.tpl \
	data/templates/formcontainer.tpl \
	data/templates/admindeleted.tpl \
	data/templates/versions.tpl

phptemplatesdir = $(phplibdir)/data/KolabAdmin/templates
phptemplates_DATA = $(PHP_TEMPLATES)
EXTRA_DIST += $(PHP_TEMPLATES)

### i18n stuff
# gettextize didn't make much sense for a php project
# so we install the .mo files "manually"
# PENDING(steffen): Improve this

MSGFMT=msgfmt

.po.mo: $<
# Without $(mkinstalldirs) `echo ... | sed ...` a 'make distcheck' would
# fail as the target directory (e.g. php/admin/locale/de/LC_MESSAGES)
# does not yes exist at build time.  Use the `echo ... | sed ...` construction
# as something smarter, like basename, results in configure to complain
# about not portable filenames.
	@$(mkinstalldirs) `echo "$@" | sed 's|messages\.mo||'`
	$(MSGFMT) -o $@ $<

CLEANFILES += php/admin/locale/*/LC_MESSAGES/messages.mo


PHP_LOCALE_DE_PO = php/admin/locale/de/LC_MESSAGES/messages.po
PHP_LOCALE_DE_MO = php/admin/locale/de/LC_MESSAGES/messages.mo
PHP_LOCALE_FR_PO = php/admin/locale/fr/LC_MESSAGES/messages.po
PHP_LOCALE_FR_MO = php/admin/locale/fr/LC_MESSAGES/messages.mo
PHP_LOCALE_NL_PO = php/admin/locale/nl/LC_MESSAGES/messages.po
PHP_LOCALE_NL_MO = php/admin/locale/nl/LC_MESSAGES/messages.mo
PHP_LOCALE_IT_PO = php/admin/locale/it/LC_MESSAGES/messages.po
PHP_LOCALE_IT_MO = php/admin/locale/it/LC_MESSAGES/messages.mo
PHP_LOCALE_ES_PO = php/admin/locale/es/LC_MESSAGES/messages.po
PHP_LOCALE_ES_MO = php/admin/locale/es/LC_MESSAGES/messages.mo

localedir = $(phpkolabdir)/locale

phplocalededir = $(localedir)/de/LC_MESSAGES
phplocalefrdir = $(localedir)/fr/LC_MESSAGES
phplocalenldir = $(localedir)/nl/LC_MESSAGES
phplocaleitdir = $(localedir)/it/LC_MESSAGES
phplocaleesdir = $(localedir)/es/LC_MESSAGES

phplocalede_DATA = $(PHP_LOCALE_DE_MO)
phplocalefr_DATA = $(PHP_LOCALE_FR_MO)
phplocalenl_DATA = $(PHP_LOCALE_NL_MO)
phplocaleit_DATA = $(PHP_LOCALE_IT_MO)
phplocalees_DATA = $(PHP_LOCALE_ES_MO)

EXTRA_DIST += $(PHP_LOCALE_DE_PO) \
	$(PHP_LOCALE_FR_PO) \
	$(PHP_LOCALE_NL_PO) \
	$(PHP_LOCALE_IT_PO) \
	$(PHP_LOCALE_ES_PO)

kwadocdir = $(pkgdocdir)/@PACKAGE@
dist_kwadoc_DATA = ChangeLog \
        COPYING \
        NEWS \
        AUTHORS

EXTRA_DIST += dist_conf/common \
	dist_conf/debian \
	dist_conf/kolab \
	dist_conf/mandriva \
	dist_conf/suse

install-data-hook:
	$(mkinstalldirs) $(DESTDIR)$(smarty_compiledir)
# 	test -z "$(webserver_usr)" || chown $(webserver_usr) $(DESTDIR)$(phpkolabdir)/templates_c