build: Fix EXTRA_DIST and MAINTAINERCLEANFILES 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_WINSYS)-$(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-<winsys>-<major>.<minor>.pc - for backend-specific dependencies
25 clutter-$(CLUTTER_WINSYS)-$(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 EXTRA_DIST =                            \
36         ChangeLog.pre-git-import        \
37         clutter.pc.in                   \
38         HACKING                         \
39         HACKING.backends                \
40         CODING_STYLE                    \
41         $(NULL)
42
43 CLEANFILES = $(pcfiles)
44
45 DISTCLEANFILES = doltcompile doltlibtool
46
47 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-maintainer-flags
48
49 # Extra clean files so that maintainer-clean removes *everything*
50 MAINTAINERCLEANFILES =  \
51         aclocal.m4      \
52         config.guess    \
53         config.h.in     \
54         configure       \
55         gtk-doc.make    \
56         Makefile.in     \
57         $(NULL)
58
59 include $(top_srcdir)/build/autotools/Makefile.am.changelog