summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 2c44ebb9af78a1842b3b39b9d88583c1923464b3 (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
EXTRA_DIST =
CLEANFILES =

@distribution@
@common@

noinst_HEADERS = @PACKAGE@.spec

WSTOPLEVEL_FILES = www/favicon.ico

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

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

wskolabdir = $(webserver_document_root)/admin
dist_wskolab_DATA = $(WSKOLAB_FILES)

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

wsaddressbookdir   = $(wskolabdir)/addressbook
dist_wsaddressbook_DATA = $(WSADDRESSBOOK_FILES)

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

wsadminstratordir = $(wskolabdir)/administrator
dist_wsadminstrator_DATA = $(WSADMINISTRATOR_FILES)

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

wsdistributionlistdir = $(wskolabdir)/distributionlist
dist_wsdistributionlist_DATA = $(WSDISTRIBUTIONLIST_FILES)

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

wsaboutdir = $(wskolabdir)/kolab
dist_wsabout_DATA = $(WSABOUT_FILES)

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

wsmaintainerdir = $(wskolabdir)/maintainer
dist_wsmaintainer_DATA = $(WSMAINTAINER_FILES)

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

wsdomainmaintainerdir = $(wskolabdir)/domainmaintainer
dist_wsdomainmaintainer_DATA = $(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.jpg \
	www/admin/pics/kolab_logo.png

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

wsservicedir = $(wskolabdir)/service
dist_wsservice_DATA = www/admin/service/index.php

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

wssharedfolderdir = $(wskolabdir)/sharedfolder
dist_wssharedfolder_DATA = $(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
dist_wsuser_DATA = $(WSUSER_FILES)

phpkolabdir = $(phplibdir2)/admin

php/admin/include/config.php: Makefile php/admin/include/config.php.in
	$(mkinstalldirs) php/admin/include
	$(do_subst) <$(srcdir)/php/admin/include/config.php.in >$@

CLEANFILES += php/admin/include/config.php
EXTRA_DIST += php/admin/include/config.php.in

php_includes_configdir = $(phpkolabdir)/include
php_includes_config_DATA = php/admin/include/config.php

PHP_INCLUDES = php/admin/include/menu.php \
	php/admin/include/debug.php \
	php/admin/include/form.class.php \
	php/admin/include/auth.class.php \
	php/admin/include/ldap.class.php \
	php/admin/include/sieveutils.class.php \
	php/admin/include/mysmarty.php \
	php/admin/include/headers.php \
	php/admin/include/authenticate.php \
	php/admin/include/locale.php \
	php/admin/include/Sieve.php

phpincludesdir = $(phpkolabdir)/include
dist_phpincludes_DATA = $(PHP_INCLUDES)

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

phptemplatesdir = $(phpkolabdir)/templates
dist_phptemplates_DATA = $(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:
	$(MSGFMT) -o $@ $<


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

dist_phplocalede_DATA = $(PHP_LOCALE_DE_MO)
dist_phplocalefr_DATA = $(PHP_LOCALE_FR_MO)
dist_phplocalenl_DATA = $(PHP_LOCALE_NL_MO)
dist_phplocaleit_DATA = $(PHP_LOCALE_IT_MO)
dist_phplocalees_DATA = $(PHP_LOCALE_ES_MO)

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

EXTRA_DIST += dist_conf


php/admin/include/auth.class.php:
	@$(mkinstalldirs) php/admin/include
	$(do_subst) <$(srcdir)/php/admin/include/auth.class.php.in >$@
CLEANFILES += php/admin/include/auth.class.php
EXTRA_DIST += php/admin/include/auth.class.php.in

php/admin/include/headers.php:
	@$(mkinstalldirs) php/admin/include
	$(do_subst) <$(srcdir)/php/admin/include/headers.php.in >$@
CLEANFILES += php/admin/include/headers.php
EXTRA_DIST += php/admin/include/headers.php.in

php/admin/templates/page.tpl:
	@$(mkinstalldirs) php/admin/templates
	$(do_subst) <$(srcdir)/php/admin/templates/page.tpl.in >$@
CLEANFILES += php/admin/templates/page.tpl
EXTRA_DIST += php/admin/templates/page.tpl.in

www/admin/logout.php:
	@$(mkinstalldirs) www/admin
	$(do_subst) <$(srcdir)/www/admin/logout.php.in >$@
CLEANFILES += www/admin/logout.php
EXTRA_DIST += www/admin/logout.php.in

www/admin/user/user.php:
	@$(mkinstalldirs) www/admin/user
	$(do_subst) <$(srcdir)/www/admin/user/user.php.in >$@
CLEANFILES += www/admin/user/user.php
EXTRA_DIST += www/admin/user/user.php.in


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