1# Process this file with automake to produce Makefile.in 2 3NULL = 4 5ACLOCAL_AMFLAGS = -I m4 6 7SUBDIRS = src util test docs 8 9EXTRA_DIST = \ 10 autogen.sh \ 11 harfbuzz.doap \ 12 Android.mk \ 13 $(NULL) 14 15MAINTAINERCLEANFILES = \ 16 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ 17 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ 18 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ 19 $(srcdir)/INSTALL \ 20 $(srcdir)/ChangeLog \ 21 $(NULL) 22 23 24# 25# ChangeLog generation 26# 27CHANGELOG_RANGE = 28ChangeLog: $(srcdir)/ChangeLog 29$(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" \ 34 || ($(RM) $@.tmp; \ 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)/$@")); \ 37 else \ 38 test -f $@ || \ 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)/$@"); \ 41 fi 42.PHONY: ChangeLog $(srcdir)/ChangeLog 43 44 45# 46# Release engineering 47# 48 49DISTCHECK_CONFIGURE_FLAGS = \ 50 --enable-gtk-doc \ 51 --disable-doc-cross-references \ 52 --with-gobject \ 53 --enable-introspection \ 54 $(NULL) 55 56# TODO: Copy infrastructure from cairo 57 58# TAR_OPTIONS is not set as env var for 'make dist'. How to fix that? 59TAR_OPTIONS = --owner=0 --group=0 60 61dist-hook: dist-clear-sticky-bits 62# Clean up any sticky bits we may inherit from parent dir 63dist-clear-sticky-bits: 64 chmod -R a-s $(distdir) 65 66 67tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2 68sha256_file = $(tar_file).sha256 69gpg_file = $(sha256_file).asc 70$(sha256_file): $(tar_file) 71 sha256sum $^ > $@ 72$(gpg_file): $(sha256_file) 73 @echo "Please enter your GPG password to sign the checksum." 74 gpg --armor --sign $^ 75 76release-files: $(tar_file) $(sha256_file) $(gpg_file) 77 78 79-include $(top_srcdir)/git.mk 80