[build] Split out the custom silent rules
[profile/ivi/clutter.git] / Makefile.am
1 include $(top_srcdir)/build/autotools/Makefile.am.silent
2
3 NULL =
4
5 SUBDIRS = build clutter tests po
6
7 if BUILD_GTK_DOC
8 SUBDIRS += doc
9 endif
10
11 DIST_SUBDIRS = build clutter tests doc po
12
13 ACLOCAL_AMFLAGS = -I build/autotools
14
15 pcfiles = \
16         clutter-$(CLUTTER_API_VERSION).pc \
17         clutter-$(CLUTTER_FLAVOUR)-$(CLUTTER_API_VERSION).pc \
18         $(NULL)
19
20 # clutter-<major>.<minor>.pc - for generic dependencies
21 clutter-$(CLUTTER_API_VERSION).pc: clutter.pc
22         $(QUIET_GEN)cp $< $@
23
24 # clutter-<flavour>-<major>.<minor>.pc - for backend-specific dependencies
25 clutter-$(CLUTTER_FLAVOUR)-$(CLUTTER_API_VERSION).pc: clutter.pc
26         $(QUIET_GEN)cp $< $@
27
28 .PHONY: test-report full-report
29 test-report full-report:
30         $(MAKE) -C tests/conform $(@)
31
32 pkgconfig_DATA = $(pcfiles)
33 pkgconfigdir   = $(libdir)/pkgconfig
34
35 DEFAULT_FLAVOUR = @CLUTTER_FLAVOUR@
36
37 EXTRA_DIST =                    \
38         ChangeLog.SVN           \
39         clutter.pc.in           \
40         HACKING                 \
41         HACKING.backends        \
42         CODING_STYLE
43
44 CLEANFILES = $(pcfiles)
45
46 DISTCLEANFILES = doltcompile doltlibtool
47
48 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-maintainer-flags
49
50 # Extra clean files so that maintainer-clean removes *everything*
51 MAINTAINERCLEANFILES =  \
52         aclocal.m4      \
53         compile         \
54         config.guess    \
55         config.h.in     \
56         config.sub      \
57         configure       \
58         depcomp         \
59         gtk-doc.make    \
60         install-sh      \
61         ltmain.sh       \
62         Makefile.in     \
63         missing         \
64         $(NULL)
65
66 #PREV_RELEASE=$(CLUTTER_MAJOR_VERSION).$$(echo "$(CLUTTER_MINOR_VERSION)-1" | bc)
67 PREV_RELEASE=git-import
68
69 dist-hook:
70         @if test -d "$(srcdir)/.git"; \
71         then \
72                 to=""; \
73                 from="$(PREV_RELEASE)"; \
74                 echo Creating ChangeLog && \
75                 ( cd "$(top_srcdir)" && \
76                   echo '# Generated by configure.  Do no edit.'; echo; \
77                   $(top_srcdir)/missing --run perl $(top_srcdir)/build/gen-changelog.pl $$from..$$to ) > ChangeLog.tmp \
78                 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
79                 || ( rm -f ChangeLog.tmp ; \
80                      echo Failed to generate ChangeLog >&2 ); \
81         else \
82                 echo A git checkout is required to generate a ChangeLog >&2; \
83         fi