blob: fa8711403d5ca4635c2d2bdf7d2005c084878c52 [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
Anthony Carricof7c72b42013-02-24 13:00:33 -05007SUBDIRS = 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 Esfahbod94afeb62012-12-21 11:54:50 -050012 Android.mk \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040013 $(NULL)
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -050014
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050015MAINTAINERCLEANFILES = \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050016 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
17 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
18 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050019 $(srcdir)/INSTALL \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050020 $(srcdir)/ChangeLog \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050021 $(NULL)
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050022
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050023
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040024#
25# ChangeLog generation
26#
27CHANGELOG_RANGE =
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040028ChangeLog: $(srcdir)/ChangeLog
29$(srcdir)/ChangeLog:
Behdad Esfahbode297ee42012-08-10 14:49:37 -040030 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
Behdad Esfahbodbb8ffb52014-03-04 13:03:51 -080031 (GIT_DIR=$(top_srcdir)/.git \
32 $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
Behdad Esfahbod7068e532012-08-18 13:56:10 -040033 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050034 || ($(RM) $@.tmp; \
35 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040036 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050037 else \
38 test -f $@ || \
39 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040040 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050041 fi
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040042.PHONY: ChangeLog $(srcdir)/ChangeLog
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050043
44
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040045#
46# Release engineering
47#
48
Anthony Carricof7c72b42013-02-24 13:00:33 -050049DISTCHECK_CONFIGURE_FLAGS = \
50 --enable-gtk-doc \
51 --disable-doc-cross-references \
Behdad Esfahbodb0e03502013-08-29 15:56:32 -040052 --with-gobject \
53 --enable-introspection \
Anthony Carricof7c72b42013-02-24 13:00:33 -050054 $(NULL)
55
Behdad Esfahbod5c9f1492011-05-27 15:59:33 -040056# TODO: Copy infrastructure from cairo
57
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040058# TAR_OPTIONS is not set as env var for 'make dist'. How to fix that?
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040059TAR_OPTIONS = --owner=0 --group=0
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040060
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040061dist-hook: dist-clear-sticky-bits
62# Clean up any sticky bits we may inherit from parent dir
63dist-clear-sticky-bits:
64 chmod -R a-s $(distdir)
65
66
67tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
68sha256_file = $(tar_file).sha256
69gpg_file = $(sha256_file).asc
70$(sha256_file): $(tar_file)
71 sha256sum $^ > $@
72$(gpg_file): $(sha256_file)
73 @echo "Please enter your GPG password to sign the checksum."
74 gpg --armor --sign $^
75
76release-files: $(tar_file) $(sha256_file) $(gpg_file)
77
78
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050079-include $(top_srcdir)/git.mk