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

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

EXTRA_DIST = \
	AUTHORS \
	ChangeLog \
	COPYING \
	DEVELOPMENT \
	INSTALL \
	NEWS \
	README \
	cmake/modules/*.cmake \
	$(PACKAGE).spec \
	$(PACKAGE).spec.in

SUBDIRS = \
	libkolabxml \
	pykolab \
	schemas

tarball:
	git stash
	make dist

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

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

all: ChangeLog

test: all quicktest

quicktest:
	@nosetests -v -d pykolab/format/tests/

clean:
	find -type f -name "*.pyo" -o -name "*.pyc" -delete