f4420f2 by Jiří Techet at 2011-02-26 1
SUBDIRS = build champlain
e28fee0 by Pierre-Luc Beaudoin at 2008-08-18 2
030cd9a by Jiří Techet at 2010-08-25 3
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
0faaf09 by Pierre-Luc Beaudoin at 2008-11-17 4
1ea0043 by Jiří Techet at 2010-04-25 5
pcfiles = champlain-@CHAMPLAIN_API_VERSION@.pc
6
other_pcfiles = champlain-@CHAMPLAIN_API_VERSION@-uninstalled.pc
e28fee0 by Pierre-Luc Beaudoin at 2008-08-18 7
9a11250 by Pierre-Luc Beaudoin at 2009-02-12 8
if ENABLE_GTK
f626336 by Jiří Techet at 2010-05-08 9
SUBDIRS += champlain-gtk
1ea0043 by Jiří Techet at 2010-04-25 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
9a11250 by Pierre-Luc Beaudoin at 2009-02-12 17
endif
e28fee0 by Pierre-Luc Beaudoin at 2008-08-18 18
19
pkgconfig_DATA = $(pcfiles)
20
pkgconfigdir = $(libdir)/pkgconfig
182ab6d by Pierre-Luc Beaudoin at 2008-08-21 21
99d8d8a by Jiří Techet at 2011-04-01 22
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-gtk --enable-vala --enable-vala-demos --enable-introspection --enable-memphis
f626336 by Jiří Techet at 2010-05-08 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
182ab6d by Pierre-Luc Beaudoin at 2008-08-21 31
452501c by Jiří Techet at 2011-03-18 32
DISTCLEANFILES = $(pcfiles) $(other_pcfiles)
f626336 by Jiří Techet at 2010-05-08 33
c5d8527 by Pierre-Luc Beaudoin at 2009-06-03 34
all: $(other_pcfiles)
9a11250 by Pierre-Luc Beaudoin at 2009-02-12 35
36
# Have the demos build at the end as they depend on optional parts
897efad by Lorenzo Masini at 2011-03-31 37
SUBDIRS += docs demos
f626336 by Jiří Techet at 2010-05-08 38
8fa46ff by Jiří Techet at 2010-05-17 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
52