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