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