Behdad Esfahbod | 28b1bac | 2011-05-27 02:44:29 -0400 | [diff] [blame] | 1 | # Process this file with automake to produce Makefile.in |
| 2 | |
Behdad Esfahbod | abe636b | 2011-05-10 17:55:40 -0400 | [diff] [blame] | 3 | NULL = |
| 4 | |
Behdad Esfahbod | c7afac0 | 2012-10-02 14:44:47 -0400 | [diff] [blame] | 5 | ACLOCAL_AMFLAGS = -I m4 |
| 6 | |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 7 | SUBDIRS = src util test docs |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 8 | |
Behdad Esfahbod | 8a7d168 | 2009-12-15 03:53:45 -0500 | [diff] [blame] | 9 | EXTRA_DIST = \ |
Behdad Esfahbod | abe636b | 2011-05-10 17:55:40 -0400 | [diff] [blame] | 10 | autogen.sh \ |
| 11 | harfbuzz.doap \ |
Behdad Esfahbod | 94afeb6 | 2012-12-21 11:54:50 -0500 | [diff] [blame] | 12 | Android.mk \ |
Behdad Esfahbod | ca1c281 | 2015-01-21 01:51:48 -0800 | [diff] [blame] | 13 | README.python \ |
Behdad Esfahbod | abe636b | 2011-05-10 17:55:40 -0400 | [diff] [blame] | 14 | $(NULL) |
Behdad Esfahbod | 8a7d168 | 2009-12-15 03:53:45 -0500 | [diff] [blame] | 15 | |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 16 | MAINTAINERCLEANFILES = \ |
Behdad Esfahbod | 22c625a | 2013-03-04 20:56:15 -0500 | [diff] [blame] | 17 | $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ |
| 18 | $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ |
| 19 | $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 20 | $(srcdir)/INSTALL \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 21 | $(srcdir)/ChangeLog \ |
Behdad Esfahbod | 22c625a | 2013-03-04 20:56:15 -0500 | [diff] [blame] | 22 | $(NULL) |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 23 | |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 24 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 25 | # |
| 26 | # ChangeLog generation |
| 27 | # |
| 28 | CHANGELOG_RANGE = |
Behdad Esfahbod | 280e52a | 2013-05-30 18:04:24 -0400 | [diff] [blame] | 29 | ChangeLog: $(srcdir)/ChangeLog |
| 30 | $(srcdir)/ChangeLog: |
Behdad Esfahbod | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 31 | $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \ |
Behdad Esfahbod | bb8ffb5 | 2014-03-04 13:03:51 -0800 | [diff] [blame] | 32 | (GIT_DIR=$(top_srcdir)/.git \ |
| 33 | $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \ |
Behdad Esfahbod | 7068e53 | 2012-08-18 13:56:10 -0400 | [diff] [blame] | 34 | && mv -f $@.tmp "$(srcdir)/ChangeLog" \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 35 | || ($(RM) $@.tmp; \ |
| 36 | echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ |
Behdad Esfahbod | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 37 | (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 38 | else \ |
| 39 | test -f $@ || \ |
| 40 | (echo A git checkout and git-log is required to generate ChangeLog >&2 && \ |
Behdad Esfahbod | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 41 | echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 42 | fi |
Behdad Esfahbod | 280e52a | 2013-05-30 18:04:24 -0400 | [diff] [blame] | 43 | .PHONY: ChangeLog $(srcdir)/ChangeLog |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 44 | |
| 45 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 46 | # |
| 47 | # Release engineering |
| 48 | # |
| 49 | |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 50 | DISTCHECK_CONFIGURE_FLAGS = \ |
| 51 | --enable-gtk-doc \ |
| 52 | --disable-doc-cross-references \ |
Behdad Esfahbod | b0e0350 | 2013-08-29 15:56:32 -0400 | [diff] [blame] | 53 | --with-gobject \ |
| 54 | --enable-introspection \ |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 55 | $(NULL) |
| 56 | |
Behdad Esfahbod | 5c9f149 | 2011-05-27 15:59:33 -0400 | [diff] [blame] | 57 | # TODO: Copy infrastructure from cairo |
| 58 | |
Behdad Esfahbod | 74ff41c | 2013-09-03 20:09:14 -0400 | [diff] [blame] | 59 | # TAR_OPTIONS is not set as env var for 'make dist'. How to fix that? |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 60 | TAR_OPTIONS = --owner=0 --group=0 |
Behdad Esfahbod | 74ff41c | 2013-09-03 20:09:14 -0400 | [diff] [blame] | 61 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 62 | dist-hook: dist-clear-sticky-bits |
| 63 | # Clean up any sticky bits we may inherit from parent dir |
| 64 | dist-clear-sticky-bits: |
| 65 | chmod -R a-s $(distdir) |
| 66 | |
| 67 | |
| 68 | tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2 |
| 69 | sha256_file = $(tar_file).sha256 |
| 70 | gpg_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 | |
| 77 | release-files: $(tar_file) $(sha256_file) $(gpg_file) |
| 78 | |
| 79 | |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 80 | -include $(top_srcdir)/git.mk |