blob: 2bbd3c55da375a4291f651e1606d32600f6cd5c7 [file] [log] [blame]
Behdad Esfahbod28b1bac2011-05-27 02:44:29 -04001# Process this file with automake to produce Makefile.in
2
Behdad Esfahbodabe636b2011-05-10 17:55:40 -04003NULL =
4
Behdad Esfahbodc7afac02012-10-02 14:44:47 -04005ACLOCAL_AMFLAGS = -I m4
6
ebraminiodfeccd02017-10-12 12:11:47 +03307SUBDIRS = src util test docs
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05008
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -05009EXTRA_DIST = \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040010 autogen.sh \
11 harfbuzz.doap \
Behdad Esfahboda0a75a72019-05-25 12:16:28 -040012 README.md \
Behdad Esfahbod77a1b6b2019-05-25 11:18:40 -040013 README.mingw.md \
Behdad Esfahboda0a75a72019-05-25 12:16:28 -040014 README.python.md \
Behdad Esfahbod6486e372015-10-20 16:39:41 -020015 BUILD.md \
Behdad Esfahbod3a939462019-06-17 20:10:36 -070016 CONFIG.md \
Behdad Esfahboddb446cc2017-10-01 12:06:00 -040017 RELEASING.md \
Behdad Esfahboda0a75a72019-05-25 12:16:28 -040018 TESTING.md \
ebraminio7d64c0e2017-04-04 15:03:51 +043019 CMakeLists.txt \
Chun-wei Fan53db2212017-10-18 15:43:57 +080020 replace-enum-strings.cmake \
Behdad Esfahboda0a75a72019-05-25 12:16:28 -040021 mingw-configure.sh \
22 mingw-ldd.py \
23 mingw32.sh \
24 mingw64.sh \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040025 $(NULL)
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -050026
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050027MAINTAINERCLEANFILES = \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050028 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
29 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
30 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050031 $(srcdir)/INSTALL \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050032 $(srcdir)/ChangeLog \
Behdad Esfahbod6c918e22015-02-26 13:55:34 -080033 $(srcdir)/gtk-doc.make \
Behdad Esfahbodca539e32016-02-22 15:37:18 +090034 $(srcdir)/m4/gtk-doc.m4 \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050035 $(NULL)
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050036
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050037
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040038#
39# ChangeLog generation
40#
41CHANGELOG_RANGE =
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040042ChangeLog: $(srcdir)/ChangeLog
43$(srcdir)/ChangeLog:
Behdad Esfahbode297ee42012-08-10 14:49:37 -040044 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
Behdad Esfahbodbb8ffb52014-03-04 13:03:51 -080045 (GIT_DIR=$(top_srcdir)/.git \
Behdad Esfahbod0dd3fdf2019-03-25 15:08:14 -070046 $(GIT) log $(CHANGELOG_RANGE) --stat) > $@.tmp \
Behdad Esfahbod7068e532012-08-18 13:56:10 -040047 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050048 || ($(RM) $@.tmp; \
49 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040050 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050051 else \
52 test -f $@ || \
53 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040054 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050055 fi
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040056.PHONY: ChangeLog $(srcdir)/ChangeLog
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050057
58
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040059#
60# Release engineering
61#
62
Anthony Carricof7c72b42013-02-24 13:00:33 -050063DISTCHECK_CONFIGURE_FLAGS = \
64 --enable-gtk-doc \
65 --disable-doc-cross-references \
Behdad Esfahbodb0e03502013-08-29 15:56:32 -040066 --with-gobject \
67 --enable-introspection \
Anthony Carricof7c72b42013-02-24 13:00:33 -050068 $(NULL)
69
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040070# TAR_OPTIONS is not set as env var for 'make dist'. How to fix that?
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040071TAR_OPTIONS = --owner=0 --group=0
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040072
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040073dist-hook: dist-clear-sticky-bits
74# Clean up any sticky bits we may inherit from parent dir
75dist-clear-sticky-bits:
76 chmod -R a-s $(distdir)
77
Behdad Esfahbod5fd3ece2019-05-24 15:56:15 -040078tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.xz
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040079sha256_file = $(tar_file).sha256
80gpg_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
87release-files: $(tar_file) $(sha256_file) $(gpg_file)
88
Behdad Esfahbodc41ed542019-05-25 12:35:09 -040089dist-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 Esfahbod3f12c432011-05-27 04:58:11 -0400102
Behdad Esfahbod29aa4002009-11-02 16:28:39 -0500103-include $(top_srcdir)/git.mk