mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
5643a47cb6
The ChangeLog should only be generated by dist-hook and as a temporary file to avoid overwriting the stub we use to direct people to the commit log when cloning the repository. When generated, the ChangeLog should be copied inside the distdir so that the autotools will not freak out.
81 lines
1.8 KiB
Makefile
81 lines
1.8 KiB
Makefile
NULL =
|
|
|
|
SUBDIRS = build clutter tests po
|
|
|
|
if BUILD_GTK_DOC
|
|
SUBDIRS += doc
|
|
endif
|
|
|
|
DIST_SUBDIRS = build clutter tests doc po
|
|
|
|
ACLOCAL_AMFLAGS = -I build/autotools
|
|
|
|
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
|
|
$(QUIET_GEN)cp $< $@
|
|
|
|
# clutter-<flavour>-<major>.<minor>.pc - for backend-specific dependencies
|
|
clutter-$(CLUTTER_FLAVOUR)-$(CLUTTER_API_VERSION).pc: clutter.pc
|
|
$(QUIET_GEN)cp $< $@
|
|
|
|
.PHONY: test-report full-report
|
|
test-report full-report:
|
|
$(MAKE) -C tests/conform $(@)
|
|
|
|
pkgconfig_DATA = $(pcfiles)
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
DEFAULT_FLAVOUR = @CLUTTER_FLAVOUR@
|
|
|
|
EXTRA_DIST = \
|
|
ChangeLog.SVN \
|
|
clutter.pc.in \
|
|
HACKING \
|
|
HACKING.backends \
|
|
CODING_STYLE
|
|
|
|
CLEANFILES = $(pcfiles)
|
|
|
|
DISTCLEANFILES = doltcompile doltlibtool
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-maintainer-flags
|
|
|
|
# Extra clean files so that maintainer-clean removes *everything*
|
|
MAINTAINERCLEANFILES = \
|
|
aclocal.m4 \
|
|
compile \
|
|
config.guess \
|
|
config.h.in \
|
|
config.sub \
|
|
configure \
|
|
depcomp \
|
|
gtk-doc.make \
|
|
install-sh \
|
|
ltmain.sh \
|
|
Makefile.in \
|
|
missing \
|
|
$(NULL)
|
|
|
|
PREV_RELEASE=$(CLUTTER_MAJOR_VERSION).$$(echo "$(CLUTTER_MINOR_VERSION)-1" | bc)
|
|
|
|
dist-hook:
|
|
@if test -d "$(srcdir)/.git"; \
|
|
then \
|
|
to=""; \
|
|
from="$(PREV_RELEASE)"; \
|
|
echo Creating ChangeLog && \
|
|
( cd "$(top_srcdir)" && \
|
|
echo '# Generated by configure. Do no edit.'; echo; \
|
|
$(top_srcdir)/missing --run perl $(top_srcdir)/build/gen-changelog.pl $$from.0..$$to ) > ChangeLog.tmp \
|
|
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|
|
|| ( rm -f ChangeLog.tmp ; \
|
|
echo Failed to generate ChangeLog >&2 ); \
|
|
else \
|
|
echo A git checkout is required to generate a ChangeLog >&2; \
|
|
fi
|