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 | |
Behdad Esfahbod | 511a136 | 2011-08-09 15:03:00 +0200 | [diff] [blame] | 7 | SUBDIRS = src util test |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 8 | |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 9 | pkgconfigdir = $(libdir)/pkgconfig |
| 10 | pkgconfig_DATA = harfbuzz.pc |
| 11 | |
Behdad Esfahbod | 8a7d168 | 2009-12-15 03:53:45 -0500 | [diff] [blame] | 12 | EXTRA_DIST = \ |
Behdad Esfahbod | abe636b | 2011-05-10 17:55:40 -0400 | [diff] [blame] | 13 | autogen.sh \ |
| 14 | harfbuzz.doap \ |
Behdad Esfahbod | 94afeb6 | 2012-12-21 11:54:50 -0500 | [diff] [blame] | 15 | Android.mk \ |
Behdad Esfahbod | abe636b | 2011-05-10 17:55:40 -0400 | [diff] [blame] | 16 | $(NULL) |
Behdad Esfahbod | 8a7d168 | 2009-12-15 03:53:45 -0500 | [diff] [blame] | 17 | |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 18 | MAINTAINERCLEANFILES = \ |
Behdad Esfahbod | 22c625a | 2013-03-04 20:56:15 -0500 | [diff] [blame] | 19 | $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ |
| 20 | $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ |
| 21 | $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 22 | $(srcdir)/INSTALL \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 23 | $(srcdir)/ChangeLog \ |
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 | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 31 | ChangeLog: |
| 32 | $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \ |
| 33 | (GIT_DIR=$(top_srcdir)/.git $(top_srcdir)/missing --run \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 34 | git log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \ |
Behdad Esfahbod | 7068e53 | 2012-08-18 13:56:10 -0400 | [diff] [blame] | 35 | && mv -f $@.tmp "$(srcdir)/ChangeLog" \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 36 | || ($(RM) $@.tmp; \ |
| 37 | echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ |
Behdad Esfahbod | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 38 | (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 39 | else \ |
| 40 | test -f $@ || \ |
| 41 | (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] | 42 | 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] | 43 | fi |
| 44 | .PHONY: $(srcdir)/ChangeLog |
| 45 | |
| 46 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 47 | # |
| 48 | # Release engineering |
| 49 | # |
| 50 | |
Behdad Esfahbod | 5c9f149 | 2011-05-27 15:59:33 -0400 | [diff] [blame] | 51 | # TODO: Copy infrastructure from cairo |
| 52 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 53 | TAR_OPTIONS = --owner=0 --group=0 |
| 54 | dist-hook: dist-clear-sticky-bits |
| 55 | # Clean up any sticky bits we may inherit from parent dir |
| 56 | dist-clear-sticky-bits: |
| 57 | chmod -R a-s $(distdir) |
| 58 | |
| 59 | |
| 60 | tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2 |
| 61 | sha256_file = $(tar_file).sha256 |
| 62 | gpg_file = $(sha256_file).asc |
| 63 | $(sha256_file): $(tar_file) |
| 64 | sha256sum $^ > $@ |
| 65 | $(gpg_file): $(sha256_file) |
| 66 | @echo "Please enter your GPG password to sign the checksum." |
| 67 | gpg --armor --sign $^ |
| 68 | |
| 69 | release-files: $(tar_file) $(sha256_file) $(gpg_file) |
| 70 | |
| 71 | |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 72 | -include $(top_srcdir)/git.mk |