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 \ |
Behdad Esfahbod | a0a75a7 | 2019-05-25 12:16:28 -0400 | [diff] [blame] | 12 | README.md \ |
Behdad Esfahbod | 77a1b6b | 2019-05-25 11:18:40 -0400 | [diff] [blame] | 13 | README.mingw.md \ |
Behdad Esfahbod | a0a75a7 | 2019-05-25 12:16:28 -0400 | [diff] [blame] | 14 | README.python.md \ |
Behdad Esfahbod | 6486e37 | 2015-10-20 16:39:41 -0200 | [diff] [blame] | 15 | BUILD.md \ |
Behdad Esfahbod | 3a93946 | 2019-06-17 20:10:36 -0700 | [diff] [blame] | 16 | CONFIG.md \ |
Behdad Esfahbod | db446cc | 2017-10-01 12:06:00 -0400 | [diff] [blame] | 17 | RELEASING.md \ |
Behdad Esfahbod | a0a75a7 | 2019-05-25 12:16:28 -0400 | [diff] [blame] | 18 | TESTING.md \ |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 19 | CMakeLists.txt \ |
Chun-wei Fan | 53db221 | 2017-10-18 15:43:57 +0800 | [diff] [blame] | 20 | replace-enum-strings.cmake \ |
Behdad Esfahbod | a0a75a7 | 2019-05-25 12:16:28 -0400 | [diff] [blame] | 21 | mingw-configure.sh \ |
| 22 | mingw-ldd.py \ |
| 23 | mingw32.sh \ |
| 24 | mingw64.sh \ |
Behdad Esfahbod | abe636b | 2011-05-10 17:55:40 -0400 | [diff] [blame] | 25 | $(NULL) |
Behdad Esfahbod | 8a7d168 | 2009-12-15 03:53:45 -0500 | [diff] [blame] | 26 | |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 27 | MAINTAINERCLEANFILES = \ |
Behdad Esfahbod | 22c625a | 2013-03-04 20:56:15 -0500 | [diff] [blame] | 28 | $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ |
| 29 | $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ |
| 30 | $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 31 | $(srcdir)/INSTALL \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 32 | $(srcdir)/ChangeLog \ |
Behdad Esfahbod | 6c918e2 | 2015-02-26 13:55:34 -0800 | [diff] [blame] | 33 | $(srcdir)/gtk-doc.make \ |
Behdad Esfahbod | ca539e3 | 2016-02-22 15:37:18 +0900 | [diff] [blame] | 34 | $(srcdir)/m4/gtk-doc.m4 \ |
Behdad Esfahbod | 22c625a | 2013-03-04 20:56:15 -0500 | [diff] [blame] | 35 | $(NULL) |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 36 | |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 37 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 38 | # |
| 39 | # ChangeLog generation |
| 40 | # |
| 41 | CHANGELOG_RANGE = |
Behdad Esfahbod | 280e52a | 2013-05-30 18:04:24 -0400 | [diff] [blame] | 42 | ChangeLog: $(srcdir)/ChangeLog |
| 43 | $(srcdir)/ChangeLog: |
Behdad Esfahbod | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 44 | $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \ |
Behdad Esfahbod | bb8ffb5 | 2014-03-04 13:03:51 -0800 | [diff] [blame] | 45 | (GIT_DIR=$(top_srcdir)/.git \ |
Behdad Esfahbod | 0dd3fdf | 2019-03-25 15:08:14 -0700 | [diff] [blame] | 46 | $(GIT) log $(CHANGELOG_RANGE) --stat) > $@.tmp \ |
Behdad Esfahbod | 7068e53 | 2012-08-18 13:56:10 -0400 | [diff] [blame] | 47 | && mv -f $@.tmp "$(srcdir)/ChangeLog" \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 48 | || ($(RM) $@.tmp; \ |
| 49 | echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ |
Behdad Esfahbod | e297ee4 | 2012-08-10 14:49:37 -0400 | [diff] [blame] | 50 | (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \ |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 51 | else \ |
| 52 | test -f $@ || \ |
| 53 | (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] | 54 | 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] | 55 | fi |
Behdad Esfahbod | 280e52a | 2013-05-30 18:04:24 -0400 | [diff] [blame] | 56 | .PHONY: ChangeLog $(srcdir)/ChangeLog |
Behdad Esfahbod | 5932f8f | 2009-11-02 16:38:41 -0500 | [diff] [blame] | 57 | |
| 58 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 59 | # |
| 60 | # Release engineering |
| 61 | # |
| 62 | |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 63 | DISTCHECK_CONFIGURE_FLAGS = \ |
| 64 | --enable-gtk-doc \ |
| 65 | --disable-doc-cross-references \ |
Behdad Esfahbod | b0e0350 | 2013-08-29 15:56:32 -0400 | [diff] [blame] | 66 | --with-gobject \ |
| 67 | --enable-introspection \ |
Anthony Carrico | f7c72b4 | 2013-02-24 13:00:33 -0500 | [diff] [blame] | 68 | $(NULL) |
| 69 | |
Behdad Esfahbod | 74ff41c | 2013-09-03 20:09:14 -0400 | [diff] [blame] | 70 | # 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] | 71 | TAR_OPTIONS = --owner=0 --group=0 |
Behdad Esfahbod | 74ff41c | 2013-09-03 20:09:14 -0400 | [diff] [blame] | 72 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 73 | dist-hook: dist-clear-sticky-bits |
| 74 | # Clean up any sticky bits we may inherit from parent dir |
| 75 | dist-clear-sticky-bits: |
| 76 | chmod -R a-s $(distdir) |
| 77 | |
Behdad Esfahbod | 5fd3ece | 2019-05-24 15:56:15 -0400 | [diff] [blame] | 78 | tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.xz |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 79 | sha256_file = $(tar_file).sha256 |
| 80 | gpg_file = $(sha256_file).asc |
| 81 | $(sha256_file): $(tar_file) |
| 82 | sha256sum $^ > $@ |
| 83 | $(gpg_file): $(sha256_file) |
| 84 | @echo "Please enter your GPG password to sign the checksum." |
| 85 | gpg --armor --sign $^ |
| 86 | |
| 87 | release-files: $(tar_file) $(sha256_file) $(gpg_file) |
| 88 | |
Behdad Esfahbod | c41ed54 | 2019-05-25 12:35:09 -0400 | [diff] [blame] | 89 | dist-win: |
| 90 | @case $(host_triplet) in *-w64-mingw32) ;; *) echo "Error: Requires mingw build. See README.mingw.md.">&2; exit 1 ;; esac |
| 91 | @DIR=$(PACKAGE_TARNAME)-$(VERSION)-win`case $(host_triplet) in i686-*) echo 32 ;; x86_64-*) echo 64 ;; esac`; \ |
| 92 | $(RM) -r $$DIR; $(MKDIR_P) $$DIR || exit 1; \ |
| 93 | cp util/.libs/hb-{shape,view,subset}.exe $$DIR && \ |
| 94 | $(top_srcdir)/mingw-ldd.py $$DIR/hb-view.exe | grep -v 'not found' | cut -d '>' -f 2 | xargs cp -t $$DIR && \ |
| 95 | cp src/.libs/libharfbuzz{,-subset}-0.dll $$DIR && \ |
| 96 | chmod a+x $$DIR/*.{exe,dll} && \ |
| 97 | $(STRIP) $$DIR/*.{exe,dll} && \ |
| 98 | zip -r $$DIR.zip $$DIR && \ |
| 99 | $(RM) -r $$DIR && \ |
| 100 | echo "$$DIR.zip is ready." |
| 101 | |
Behdad Esfahbod | 3f12c43 | 2011-05-27 04:58:11 -0400 | [diff] [blame] | 102 | |
Behdad Esfahbod | 29aa400 | 2009-11-02 16:28:39 -0500 | [diff] [blame] | 103 | -include $(top_srcdir)/git.mk |