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