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 README.python \ 13 BUILD.md \ 14 RELEASING.md \ 15 CMakeLists.txt \ 16 replace-enum-strings.cmake \ 17 $(NULL) 18 19MAINTAINERCLEANFILES = \ 20 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ 21 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ 22 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ 23 $(srcdir)/INSTALL \ 24 $(srcdir)/ChangeLog \ 25 $(srcdir)/gtk-doc.make \ 26 $(srcdir)/m4/gtk-doc.m4 \ 27 $(NULL) 28 29 30# 31# ChangeLog generation 32# 33CHANGELOG_RANGE = 34ChangeLog: $(srcdir)/ChangeLog 35$(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" \ 40 || ($(RM) $@.tmp; \ 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)/$@")); \ 43 else \ 44 test -f $@ || \ 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)/$@"); \ 47 fi 48.PHONY: ChangeLog $(srcdir)/ChangeLog 49 50 51# 52# Release engineering 53# 54 55DISTCHECK_CONFIGURE_FLAGS = \ 56 --enable-gtk-doc \ 57 --disable-doc-cross-references \ 58 --with-gobject \ 59 --enable-introspection \ 60 $(NULL) 61 62# TODO: Copy infrastructure from cairo 63 64# TAR_OPTIONS is not set as env var for 'make dist'. How to fix that? 65TAR_OPTIONS = --owner=0 --group=0 66 67dist-hook: dist-clear-sticky-bits 68# Clean up any sticky bits we may inherit from parent dir 69dist-clear-sticky-bits: 70 chmod -R a-s $(distdir) 71 72 73tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2 74sha256_file = $(tar_file).sha256 75gpg_file = $(sha256_file).asc 76$(sha256_file): $(tar_file) 77 sha256sum $^ > $@ 78$(gpg_file): $(sha256_file) 79 @echo "Please enter your GPG password to sign the checksum." 80 gpg --armor --sign $^ 81 82release-files: $(tar_file) $(sha256_file) $(gpg_file) 83 84 85-include $(top_srcdir)/git.mk 86