mutter/Makefile.am

92 lines
1.9 KiB
Makefile
Raw Normal View History

NULL =
SUBDIRS = clutter tests po
if BUILD_GTK_DOC
SUBDIRS += doc
endif
DIST_SUBDIRS = clutter tests doc po
2006-06-23 06:42:29 -04: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
@cp $< $@
2006-06-23 06:42:29 -04:00
# clutter-<flavour>-<major>.<minor>.pc - for backend-specific dependencies
clutter-$(CLUTTER_FLAVOUR)-$(CLUTTER_API_VERSION).pc: clutter.pc
@cp $< $@
2006-06-23 06:42:29 -04:00
.PHONY: test-report full-report
test-report full-report:
$(MAKE) -C tests/conform $(@)
2006-06-23 06:42:29 -04:00
pkgconfig_DATA = $(pcfiles)
pkgconfigdir = $(libdir)/pkgconfig
DEFAULT_FLAVOUR = @CLUTTER_FLAVOUR@
EXTRA_DIST = \
ChangeLog.SVN \
clutter.pc.in \
HACKING \
HACKING.backends \
CODING_STYLE
2006-06-23 06:42:29 -04:00
CLEANFILES = $(pcfiles)
2006-06-23 06:42:29 -04:00
DISTCLEANFILES =
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-maintainer-flags
2006-06-23 06:42:29 -04:00
# 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)
MAINTAINERCLEANFILES += $(srcdir)/ChangeLog
PREV_RELEASE=$(CLUTTER_MAJOR_VERSION).$$(echo "$(CLUTTER_MINOR_VERSION)-1" | bc)
CHANGELOGS = ChangeLog
changelogs:
@$(MAKE) $(AM_MAKEFLAGS) $(CHANGELOGS)
dist-hook: changelogs
changelogs="$(CHANGELOGS)"; \
for changelog in $$changelogs; \
do \
cp -f $(srcdir)/$$changelog $(distdir)/ 2>/dev/null || \
cp -f $$changelog $(distdir)/; \
done
$(srcdir)/ChangeLog:
@if test -d "$(top_srcdir)/.git"; \
then \
to=""; \
from="$(PREV_RELEASE)"; \
echo Creating $@ && \
( echo '# Generated by configure. Do no edit.'; echo; \
$(top_srcdir)/missing --run perl $(top_srcdir)/build/gen-changelog.pl $$from.0..$$to ) > $@ ; \
else \
echo A git checkout is required to generate $@; \
fi
.PHONY: changelogs ChangeLog $(srcdir)/ChangeLog