summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: d536cb5b5ab8cfd1ea7ea126c5e84bcc7a04b329 (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
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = \
    m4 \
    tools \
    spec \
    telepathy-glib \
    $(NULL)

if HAVE_VALA
SUBDIRS += vala
endif

SUBDIRS += \
    extensions \
    examples \
    tests \
    docs \
    $(NULL)

DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-debug

EXTRA_DIST = \
    autogen.sh \
    gtk-doc.make

CLEANFILES = FIXME.out

check-local::
	egrep -A 5 '[F]IXME|[T]ODO|[X]XX' $(srcdir)/telepathy-glib/*.[ch] \
		> FIXME.out || true

check-valgrind:
	$(MAKE) -C tests check-valgrind 2>&1 | tee valgrind.log

maintainer-upload-release: _maintainer-upload-release-local
_maintainer-upload-release-local: _maintainer-upload-release-check
	rsync -rvzPp --chmod=Dg+s,ug+rwX,o=rX $(srcdir)/docs/reference/html/ \
	telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/doc/telepathy-glib/

BRANCH = $(shell sh tools/git-which-branch.sh misc | tr -d '\n' | tr -C "[:alnum:]" _)
UPLOAD_BRANCH_TO = people.freedesktop.org:public_html/telepathy-glib

upload-branch-docs: all
	rsync -rtzvPp --chmod=a+rX docs/reference/html/ \
		$(UPLOAD_BRANCH_TO)-$(BRANCH)/

if HAVE_AUTOMAKE_FOR_DIST
# automake is new enough to make dist
else
dist-hook: dist-hook-check-am
dist-hook-check-am:
	@echo "*** Your automake is too old to compile Vala.">&2
	@echo "*** You can build telepathy-glib with this automake, but you">&2
	@echo "*** should not use it to make tarball releases.">&2
	@exit 1
endif

include tools/lcov.am

CHANGELOG_RANGE = telepathy-glib-0.8.0..
CHECK_FOR_UNRELEASED = $(srcdir)/NEWS $(wildcard $(srcdir)/telepathy-glib/*.[ch])

include tools/telepathy.am