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