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 | abe636b | 2011-05-10 17:55:40 -0400 | [diff] [blame] | 13 | $(NULL) |
Behdad Esfahbod | 8a7d168 | 2009-12-15 03:53:45 -0500 | [diff] [blame] | 14 | |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 15 | MAINTAINERCLEANFILES = \ |
Behdad Esfahbod | 22c625a | 2013-03-04 20:56:15 -0500 | [diff] [blame] | 16 | $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ |
| 17 | $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ |
| 18 | $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 19 | $(srcdir)/INSTALL \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 20 | $(srcdir)/ChangeLog \ |
Behdad Esfahbod | 22c625a | 2013-03-04 20:56:15 -0500 | [diff] [blame] | 21 | $(NULL) |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 22 | |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 23 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 24 | # |
| 25 | # ChangeLog generation |
| 26 | # |
| 27 | CHANGELOG_RANGE = |
Behdad Esfahbod | 280e52a | 2013-05-30 18:04:24 -0400 | [diff] [blame] | 28 | ChangeLog: $(srcdir)/ChangeLog |
| 29 | $(srcdir)/ChangeLog: |
Behdad Esfahbod | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 30 | $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \ |
Behdad Esfahbod | bb8ffb5 | 2014-03-04 13:03:51 -0800 | [diff] [blame] | 31 | (GIT_DIR=$(top_srcdir)/.git \ |
| 32 | $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \ |
Behdad Esfahbod | 7068e53 | 2012-08-18 13:56:10 -0400 | [diff] [blame] | 33 | && mv -f $@.tmp "$(srcdir)/ChangeLog" \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 34 | || ($(RM) $@.tmp; \ |
| 35 | echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ |
Behdad Esfahbod | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 36 | (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 37 | else \ |
| 38 | test -f $@ || \ |
| 39 | (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] | 40 | 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] | 41 | fi |
Behdad Esfahbod | 280e52a | 2013-05-30 18:04:24 -0400 | [diff] [blame] | 42 | .PHONY: ChangeLog $(srcdir)/ChangeLog |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 43 | |
| 44 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 45 | # |
| 46 | # Release engineering |
| 47 | # |
| 48 | |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 49 | DISTCHECK_CONFIGURE_FLAGS = \ |
| 50 | --enable-gtk-doc \ |
| 51 | --disable-doc-cross-references \ |
Behdad Esfahbod | b0e0350 | 2013-08-29 15:56:32 -0400 | [diff] [blame] | 52 | --with-gobject \ |
| 53 | --enable-introspection \ |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 54 | $(NULL) |
| 55 | |
Behdad Esfahbod | 5c9f149 | 2011-05-27 15:59:33 -0400 | [diff] [blame] | 56 | # TODO: Copy infrastructure from cairo |
| 57 | |
Behdad Esfahbod | 74ff41c | 2013-09-03 20:09:14 -0400 | [diff] [blame] | 58 | # 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] | 59 | TAR_OPTIONS = --owner=0 --group=0 |
Behdad Esfahbod | 74ff41c | 2013-09-03 20:09:14 -0400 | [diff] [blame] | 60 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 61 | dist-hook: dist-clear-sticky-bits |
| 62 | # Clean up any sticky bits we may inherit from parent dir |
| 63 | dist-clear-sticky-bits: |
| 64 | chmod -R a-s $(distdir) |
| 65 | |
| 66 | |
| 67 | tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2 |
| 68 | sha256_file = $(tar_file).sha256 |
| 69 | gpg_file = $(sha256_file).asc |
| 70 | $(sha256_file): $(tar_file) |
| 71 | sha256sum $^ > $@ |
| 72 | $(gpg_file): $(sha256_file) |
| 73 | @echo "Please enter your GPG password to sign the checksum." |
| 74 | gpg --armor --sign $^ |
| 75 | |
| 76 | release-files: $(tar_file) $(sha256_file) $(gpg_file) |
| 77 | |
| 78 | |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 79 | -include $(top_srcdir)/git.mk |