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