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