1
SUBDIRS = build champlain
2
3
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
4
5
pcfiles = champlain-@CHAMPLAIN_API_VERSION@.pc
6
other_pcfiles = champlain-@CHAMPLAIN_API_VERSION@-uninstalled.pc
7
8
if ENABLE_GTK
9
SUBDIRS += champlain-gtk
10
pcfiles += champlain-gtk-@CHAMPLAIN_API_VERSION@.pc
11
other_pcfiles += champlain-gtk-@CHAMPLAIN_API_VERSION@-uninstalled.pc
12
endif
13
14
if ENABLE_MEMPHIS
15
pcfiles += champlain-memphis-@CHAMPLAIN_API_VERSION@.pc
16
other_pcfiles += champlain-memphis-@CHAMPLAIN_API_VERSION@-uninstalled.pc
17
endif
18
19
pkgconfig_DATA = $(pcfiles)
20
pkgconfigdir = $(libdir)/pkgconfig
21
22
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-gtk --enable-vala --enable-vala-demos --enable-introspection --enable-memphis
23
24
EXTRA_DIST = \
25
	champlain-gtk.pc.in \
26
	champlain-gtk-uninstalled.pc.in \
27
	champlain-memphis.pc.in \
28
	champlain-memphis-uninstalled.pc.in \
29
	champlain.pc.in \
30
	champlain-uninstalled.pc.in
31
32
DISTCLEANFILES = $(pcfiles) $(other_pcfiles)
33
34
all: $(other_pcfiles)
35
36
# Have the demos build at the end as they depend on optional parts
37
SUBDIRS += docs demos
38
39
dist-hook:
40
	@if test -d "$(srcdir)/.git"; \
41
	then \
42
		echo Creating ChangeLog && \
43
		( cd "$(top_srcdir)" && \
44
		  echo '# Generated by Makefile. Do not edit.'; echo; \
45
		  $(top_srcdir)/missing --run git log --pretty=medium ) > ChangeLog.tmp \
46
		&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
47
		|| ( rm -f ChangeLog.tmp ; \
48
		     echo Failed to generate ChangeLog >&2 ); \
49
	else \
50
		echo A git clone is required to generate a ChangeLog >&2; \
51
	fi