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

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

PYTHON_FILES = \
	cyruslib.py \
	conf.py \
	kolab.py \
	kolabd.py \
	kolabtest.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

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

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

execdir = $(sbindir)

install-exec-local:
	mkdir -p $(DESTDIR)/$(sbindir) $(DESTDIR)/$(bindir)
	$(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 kolabtest.py $(DESTDIR)/$(bindir)/kolab-test
	$(INSTALL) -p -m 644 cyruslib.py $(DESTDIR)/$(datadir)/$(PACKAGE)/