2009-09-16 16:43:58 +00:00
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
|
2008-01-25 19:48:26 +00:00
|
|
|
NULL =
|
|
|
|
|
2009-02-19 10:59:50 +00:00
|
|
|
SUBDIRS = build clutter tests po
|
2008-03-03 18:04:16 +00:00
|
|
|
|
2008-07-17 12:21:01 +00:00
|
|
|
if BUILD_GTK_DOC
|
2008-03-03 18:04:16 +00:00
|
|
|
SUBDIRS += doc
|
|
|
|
endif
|
|
|
|
|
2009-02-19 10:59:50 +00:00
|
|
|
DIST_SUBDIRS = build clutter tests doc po
|
2006-06-23 10:42:29 +00:00
|
|
|
|
2009-02-17 14:56:35 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I build/autotools
|
|
|
|
|
2008-01-25 19:48:26 +00:00
|
|
|
pcfiles = \
|
|
|
|
clutter-$(CLUTTER_API_VERSION).pc \
|
|
|
|
clutter-$(CLUTTER_FLAVOUR)-$(CLUTTER_API_VERSION).pc \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# clutter-<major>.<minor>.pc - for generic dependencies
|
|
|
|
clutter-$(CLUTTER_API_VERSION).pc: clutter.pc
|
2009-02-19 17:00:22 +00:00
|
|
|
$(QUIET_GEN)cp $< $@
|
2006-06-23 10:42:29 +00:00
|
|
|
|
2008-01-25 19:48:26 +00:00
|
|
|
# clutter-<flavour>-<major>.<minor>.pc - for backend-specific dependencies
|
2008-01-23 11:08:39 +00:00
|
|
|
clutter-$(CLUTTER_FLAVOUR)-$(CLUTTER_API_VERSION).pc: clutter.pc
|
2009-02-19 17:00:22 +00:00
|
|
|
$(QUIET_GEN)cp $< $@
|
2006-06-23 10:42:29 +00:00
|
|
|
|
2008-11-07 19:32:28 +00:00
|
|
|
.PHONY: test-report full-report
|
|
|
|
test-report full-report:
|
|
|
|
$(MAKE) -C tests/conform $(@)
|
|
|
|
|
2006-06-23 10:42:29 +00:00
|
|
|
pkgconfig_DATA = $(pcfiles)
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
2007-07-26 10:00:09 +00:00
|
|
|
DEFAULT_FLAVOUR = @CLUTTER_FLAVOUR@
|
2007-05-25 10:56:09 +00:00
|
|
|
|
2009-01-28 17:01:26 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
ChangeLog.SVN \
|
|
|
|
clutter.pc.in \
|
|
|
|
HACKING \
|
|
|
|
HACKING.backends \
|
|
|
|
CODING_STYLE
|
2006-06-23 10:42:29 +00:00
|
|
|
|
2007-06-27 11:56:41 +00:00
|
|
|
CLEANFILES = $(pcfiles)
|
2006-06-23 10:42:29 +00:00
|
|
|
|
2009-02-19 17:15:04 +00:00
|
|
|
DISTCLEANFILES = doltcompile doltlibtool
|
2009-01-29 15:38:28 +00:00
|
|
|
|
2007-07-26 10:00:09 +00:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-maintainer-flags
|
2006-06-23 10:42:29 +00:00
|
|
|
|
|
|
|
# Extra clean files so that maintainer-clean removes *everything*
|
2009-02-19 17:15:04 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
aclocal.m4 \
|
|
|
|
compile \
|
|
|
|
config.guess \
|
|
|
|
config.h.in \
|
|
|
|
config.sub \
|
|
|
|
configure \
|
|
|
|
depcomp \
|
|
|
|
gtk-doc.make \
|
|
|
|
install-sh \
|
|
|
|
ltmain.sh \
|
|
|
|
Makefile.in \
|
|
|
|
missing \
|
2008-01-25 19:48:26 +00:00
|
|
|
$(NULL)
|
2009-01-29 15:38:28 +00:00
|
|
|
|
2009-07-27 16:24:35 +00:00
|
|
|
#PREV_RELEASE=$(CLUTTER_MAJOR_VERSION).$$(echo "$(CLUTTER_MINOR_VERSION)-1" | bc)
|
|
|
|
PREV_RELEASE=git-import
|
2009-01-29 15:38:28 +00:00
|
|
|
|
2009-02-19 17:15:04 +00:00
|
|
|
dist-hook:
|
|
|
|
@if test -d "$(srcdir)/.git"; \
|
2009-01-29 15:38:28 +00:00
|
|
|
then \
|
|
|
|
to=""; \
|
|
|
|
from="$(PREV_RELEASE)"; \
|
2009-02-19 17:15:04 +00:00
|
|
|
echo Creating ChangeLog && \
|
|
|
|
( cd "$(top_srcdir)" && \
|
|
|
|
echo '# Generated by configure. Do no edit.'; echo; \
|
2009-07-27 16:24:35 +00:00
|
|
|
$(top_srcdir)/missing --run perl $(top_srcdir)/build/gen-changelog.pl $$from..$$to ) > ChangeLog.tmp \
|
2009-02-19 17:15:04 +00:00
|
|
|
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|
|
|
|
|| ( rm -f ChangeLog.tmp ; \
|
|
|
|
echo Failed to generate ChangeLog >&2 ); \
|
2009-01-29 15:38:28 +00:00
|
|
|
else \
|
2009-02-19 17:15:04 +00:00
|
|
|
echo A git checkout is required to generate a ChangeLog >&2; \
|
2009-01-29 15:38:28 +00:00
|
|
|
fi
|