summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 1e3db219a5b252915e4a39c5f12a38120c9e57f7 (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
DISTCLEANFILES = \
	intltool-extract \
	intltool-merge \
	intltool-update

INTLTOOL_FILES = \
	intltool-extract.in \
	intltool-merge.in \
	intltool-update.in

PYTHON_FILES = \
	bin/kolab_parse_telemetry.py \
	bin/kolab_smtp_access_policy.py \
	cyruslib.py \
	conf.py \
	kolab.py \
	kolabd.py \
	kolabtest.py \
	saslauthd.py \
	setup-kolab.py

EXTRA_DIST = \
	AUTHORS \
	ChangeLog \
	COPYING \
	INSTALL \
	NEWS \
	README \
	README.tests \
	pykolab.spec \
	pykolab.spec.in \
	$(PYTHON_FILES)

SUBDIRS = \
	conf \
	kolab \
	kolabd \
	po \
	pykolab \
	saslauthd

tarball:
	git stash
	make dist

ChangeLog:
	(GIT_DIR=.git git log $(PACKAGE)-$(VERSION) > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)

srpm: ChangeLog tarball
	@rpmbuild -ts $(PACKAGE)-$(VERSION).tar.gz

rpm: srpm
	@rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz

binary:
	python ext/python/Tools/freeze/freeze.py \
		-p $(prefix) \
		-b $(libdir) \
		-x BaseHTTPServer \
		-x ConfigParser \
		-x FixTk \
		-x MySQLdb \
		-x SocketServer \
		-x StringIO \
		-x Tkconstants \
		-x Tkinter \
		-x UserDict \
		-x __future__ \
		-x _abcoll \
		-x _threading_local \
		-x _weakrefset \
		-x _xmlplus \
		-x abc \
		-x atexit \
		-x base64 \
		-x bdb \
		-x bisect \
		-x calendar \
		-x cmd \
		-x collections \
		-x copy \
		-x copy_reg \
		-x difflib \
		-x dis \
		-x distutils \
		-x doctest \
		-x dsml \
		-x dummy_thread \
		-x encodings \
		-x fnmatch \
		-x formatter \
		-x ftplib \
		-x functools \
		-x genericpath \
		-x getopt \
		-x getpass \
		-x gettext \
		-x glob \
		-x gzip \
		-x hashlib \
		-x hmac \
		-x httplib \
		-x imaplib \
		-x inspect \
		-x io \
		-x ldapurl \
		-x ldif \
		-x linecache \
		-x locale \
		-x logging \
		-x mimetools \
		-x mimetypes \
		-x ntpath \
		-x nturl2path \
		-x optparse \
		-x os2emxpath \
		-x pdb \
		-x pickle \
		-x pkgutil \
		-x posixpath \
		-x pprint \
		-x py_compile \
		-x pydoc \
		-x pydoc_data \
		-x quopri \
		-x random \
		-x repr \
		-x rfc822 \
		-x shlex \
		-x shutil \
		-x site \
		-x smtplib \
		-x socket \
		-x ssl \
		-x stat \
		-x string \
		-x struct \
		-x subprocess \
		-x sysconfig \
		-x tarfile \
		-x tempfile \
		-x textwrap \
		-x threading \
		-x traceback \
		-x types \
		-x urlparse \
		-x uu \
		-x warnings \
		-o src/kolabd/ \
		kolabd.py
	cd src/kolabd/; $(MAKE)

clean:
	rm -rf src/*; mkdir -p src/
	find -type f -name "*.pyo" -o -name "*.pyc" -delete

execdir = $(sbindir)

install-exec-local:
	mkdir -p $(DESTDIR)/$(sbindir) $(DESTDIR)/$(bindir) \
		$(DESTDIR)/$(libexecdir)/postfix \
		$(DESTDIR)/$(localstatedir)/lib/kolab \
		$(DESTDIR)/$(localstatedir)/log/kolab
	$(INSTALL) -p -m 755 conf.py $(DESTDIR)/$(sbindir)/kolab-conf
	$(INSTALL) -p -m 755 kolab.py $(DESTDIR)/$(sbindir)/kolab
	$(INSTALL) -p -m 755 kolabd.py $(DESTDIR)/$(sbindir)/kolabd
	$(INSTALL) -p -m 755 saslauthd.py $(DESTDIR)/$(sbindir)/kolab-saslauthd
	$(INSTALL) -p -m 755 kolabtest.py $(DESTDIR)/$(bindir)/kolab-test
	$(INSTALL) -p -m 644 cyruslib.py $(DESTDIR)/$(pythondir)
	$(INSTALL) -p -m 755 bin/kolab_parse_telemetry.py $(DESTDIR)/$(sbindir)/kolab_parse_telemetry
	$(INSTALL) -p -m 755 bin/kolab_smtp_access_policy.py $(DESTDIR)/$(libexecdir)/postfix/kolab_smtp_access_policy