blob: 8987d5749e8ae2c02af7e69e3380fbfba9549fde [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
Chun-wei Fand7b66362015-11-03 19:00:42 +08007SUBDIRS = src util test docs win32
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 Esfahbod94afeb62012-12-21 11:54:50 -050012 Android.mk \
Behdad Esfahbodca1c2812015-01-21 01:51:48 -080013 README.python \
Behdad Esfahbod6486e372015-10-20 16:39:41 -020014 BUILD.md \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040015 $(NULL)
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -050016
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050017MAINTAINERCLEANFILES = \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050018 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
19 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
20 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050021 $(srcdir)/INSTALL \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050022 $(srcdir)/ChangeLog \
Behdad Esfahbod6c918e22015-02-26 13:55:34 -080023 $(srcdir)/gtk-doc.make \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050024 $(NULL)
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050025
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050026
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040027#
28# ChangeLog generation
29#
30CHANGELOG_RANGE =
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040031ChangeLog: $(srcdir)/ChangeLog
32$(srcdir)/ChangeLog:
Behdad Esfahbode297ee42012-08-10 14:49:37 -040033 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
Behdad Esfahbodbb8ffb52014-03-04 13:03:51 -080034 (GIT_DIR=$(top_srcdir)/.git \
35 $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
Behdad Esfahbod7068e532012-08-18 13:56:10 -040036 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050037 || ($(RM) $@.tmp; \
38 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040039 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050040 else \
41 test -f $@ || \
42 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040043 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050044 fi
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040045.PHONY: ChangeLog $(srcdir)/ChangeLog
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050046
47
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040048#
49# Release engineering
50#
51
Anthony Carricof7c72b42013-02-24 13:00:33 -050052DISTCHECK_CONFIGURE_FLAGS = \
53 --enable-gtk-doc \
54 --disable-doc-cross-references \
Behdad Esfahbodb0e03502013-08-29 15:56:32 -040055 --with-gobject \
56 --enable-introspection \
Anthony Carricof7c72b42013-02-24 13:00:33 -050057 $(NULL)
58
Behdad Esfahbod5c9f1492011-05-27 15:59:33 -040059# TODO: Copy infrastructure from cairo
60
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040061# TAR_OPTIONS is not set as env var for 'make dist'. How to fix that?
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040062TAR_OPTIONS = --owner=0 --group=0
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040063
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040064dist-hook: dist-clear-sticky-bits
65# Clean up any sticky bits we may inherit from parent dir
66dist-clear-sticky-bits:
67 chmod -R a-s $(distdir)
68
69
70tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
71sha256_file = $(tar_file).sha256
72gpg_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
79release-files: $(tar_file) $(sha256_file) $(gpg_file)
80
81
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050082-include $(top_srcdir)/git.mk