blob: 58afd9b923c0f545cdbe985bbf83cb75208e0a4b [file] [log] [blame]
Behdad Esfahbod28b1bac2011-05-27 02:44:29 -04001# Process this file with automake to produce Makefile.in
2
Behdad Esfahbodabe636b2011-05-10 17:55:40 -04003NULL =
4
Behdad Esfahbodc7afac02012-10-02 14:44:47 -04005ACLOCAL_AMFLAGS = -I m4
6
Anthony Carricof7c72b42013-02-24 13:00:33 -05007SUBDIRS = src util test docs
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05008
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -05009EXTRA_DIST = \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040010 autogen.sh \
11 harfbuzz.doap \
Behdad Esfahbod94afeb62012-12-21 11:54:50 -050012 Android.mk \
Behdad Esfahbodca1c2812015-01-21 01:51:48 -080013 README.python \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040014 $(NULL)
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -050015
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050016MAINTAINERCLEANFILES = \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050017 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
18 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
19 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050020 $(srcdir)/INSTALL \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050021 $(srcdir)/ChangeLog \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050022 $(NULL)
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050023
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050024
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040025#
26# ChangeLog generation
27#
28CHANGELOG_RANGE =
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040029ChangeLog: $(srcdir)/ChangeLog
30$(srcdir)/ChangeLog:
Behdad Esfahbode297ee42012-08-10 14:49:37 -040031 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
Behdad Esfahbodbb8ffb52014-03-04 13:03:51 -080032 (GIT_DIR=$(top_srcdir)/.git \
33 $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
Behdad Esfahbod7068e532012-08-18 13:56:10 -040034 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050035 || ($(RM) $@.tmp; \
36 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040037 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050038 else \
39 test -f $@ || \
40 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040041 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050042 fi
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040043.PHONY: ChangeLog $(srcdir)/ChangeLog
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050044
45
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040046#
47# Release engineering
48#
49
Anthony Carricof7c72b42013-02-24 13:00:33 -050050DISTCHECK_CONFIGURE_FLAGS = \
51 --enable-gtk-doc \
52 --disable-doc-cross-references \
Behdad Esfahbodb0e03502013-08-29 15:56:32 -040053 --with-gobject \
54 --enable-introspection \
Anthony Carricof7c72b42013-02-24 13:00:33 -050055 $(NULL)
56
Behdad Esfahbod5c9f1492011-05-27 15:59:33 -040057# TODO: Copy infrastructure from cairo
58
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040059# TAR_OPTIONS is not set as env var for 'make dist'. How to fix that?
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040060TAR_OPTIONS = --owner=0 --group=0
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040061
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040062dist-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
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050080-include $(top_srcdir)/git.mk