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