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 README.python \ 14 $(NULL) 15 16MAINTAINERCLEANFILES = \ 17 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ 18 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ 19 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ 20 $(srcdir)/INSTALL \ 21 $(srcdir)/ChangeLog \ 22 $(NULL) 23 24 25# 26# ChangeLog generation 27# 28CHANGELOG_RANGE = 29ChangeLog: $(srcdir)/ChangeLog 30$(srcdir)/ChangeLog: 31 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \ 32 (GIT_DIR=$(top_srcdir)/.git \ 33 $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \ 34 && mv -f $@.tmp "$(srcdir)/ChangeLog" \ 35 || ($(RM) $@.tmp; \ 36 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ 37 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \ 38 else \ 39 test -f $@ || \ 40 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \ 41 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \ 42 fi 43.PHONY: ChangeLog $(srcdir)/ChangeLog 44 45 46# 47# Release engineering 48# 49 50DISTCHECK_CONFIGURE_FLAGS = \ 51 --enable-gtk-doc \ 52 --disable-doc-cross-references \ 53 --with-gobject \ 54 --enable-introspection \ 55 $(NULL) 56 57# TODO: Copy infrastructure from cairo 58 59# TAR_OPTIONS is not set as env var for 'make dist'. How to fix that? 60TAR_OPTIONS = --owner=0 --group=0 61 62dist-hook: dist-clear-sticky-bits 63# Clean up any sticky bits we may inherit from parent dir 64dist-clear-sticky-bits: 65 chmod -R a-s $(distdir) 66 67 68tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2 69sha256_file = $(tar_file).sha256 70gpg_file = $(sha256_file).asc 71$(sha256_file): $(tar_file) 72 sha256sum $^ > $@ 73$(gpg_file): $(sha256_file) 74 @echo "Please enter your GPG password to sign the checksum." 75 gpg --armor --sign $^ 76 77release-files: $(tar_file) $(sha256_file) $(gpg_file) 78 79 80-include $(top_srcdir)/git.mk 81