1 # Process this file with automake to produce Makefile.in
5 ACLOCAL_AMFLAGS = -I m4
7 SUBDIRS = src util test docs
16 MAINTAINERCLEANFILES = \
17 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
18 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
19 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
22 $(srcdir)/gtk-doc.make \
27 # ChangeLog generation
30 ChangeLog: $(srcdir)/ChangeLog
32 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
33 (GIT_DIR=$(top_srcdir)/.git \
34 $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
35 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
37 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
38 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
41 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
42 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
44 .PHONY: ChangeLog $(srcdir)/ChangeLog
51 DISTCHECK_CONFIGURE_FLAGS = \
53 --disable-doc-cross-references \
55 --enable-introspection \
58 # TODO: Copy infrastructure from cairo
60 # TAR_OPTIONS is not set as env var for 'make dist'. How to fix that?
61 TAR_OPTIONS = --owner=0 --group=0
63 dist-hook: dist-clear-sticky-bits
64 # Clean up any sticky bits we may inherit from parent dir
65 dist-clear-sticky-bits:
66 chmod -R a-s $(distdir)
69 tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
70 sha256_file = $(tar_file).sha256
71 gpg_file = $(sha256_file).asc
72 $(sha256_file): $(tar_file)
74 $(gpg_file): $(sha256_file)
75 @echo "Please enter your GPG password to sign the checksum."
78 release-files: $(tar_file) $(sha256_file) $(gpg_file)
81 -include $(top_srcdir)/git.mk