~ubuntu-branches/ubuntu/precise/gwibber/precise-proposed

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
SUBDIRS = man bin gwibber data libgwibber libgwibber-gtk vapi po client

if HAVE_UNITY
SUBDIRS += lens
endif


pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
	gwibber-@GWIBBER_API_VERSION@.pc \
	gwibber-gtk-@GWIBBER_API_VERSION@.pc

# Test reports
.PHONY: check-report
check-report:
	$(MAKE) -C tests/ $(@)

# Distribute pot file
update-pot:
	$(MAKE) -C po "$(GETTEXT_PACKAGE).pot"

DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall --enable-introspection --enable-maintainer-flags=no --enable-unity

DIST_SUBDIRS = ${SUBDIRS} tests

DISTCLEANFILES = \
	gwibber-@GWIBBER_API_VERSION@.pc \
	gwibber-gtk-@GWIBBER_API_VERSION@.pc \
	intltool-extract \
	intltool-merge \
	intltool-update
EXTRA_DIST = \
	gwibber-@GWIBBER_API_VERSION@.pc.in \
	gwibber-gtk-@GWIBBER_API_VERSION@.pc.in \
	autogen.sh \
	COPYING.GPL-3 \
	COPYING.LGPL-2.1 \
	intltool-extract.in \
	intltool-merge.in \
	intltool-update.in

dist-hook: update-pot
	@if test -d "$(top_srcdir)/.bzr"; \
		then \
			echo Creating ChangeLog && \
				( cd "$(top_srcdir)" && \
				echo '# Generated by Makefile. Do not edit.'; echo; \
				$(top_srcdir)/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \
				&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
				|| (rm -f ChangeLog.tmp; \
					echo Failed to generate ChangeLog >&2 ); \
	else \
		echo Failed to generate ChangeLog: not a branch >&2; \
	fi