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