blob: 19c209579a4d15a6067f84ef7d4f2d147c6ed5a6 [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
Behdad Esfahbod511a1362011-08-09 15:03:00 +02007SUBDIRS = src util test
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05008
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -05009pkgconfigdir = $(libdir)/pkgconfig
10pkgconfig_DATA = harfbuzz.pc
11
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -050012EXTRA_DIST = \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040013 autogen.sh \
14 harfbuzz.doap \
Behdad Esfahbod94afeb62012-12-21 11:54:50 -050015 Android.mk \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040016 $(NULL)
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -050017
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050018MAINTAINERCLEANFILES = \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050019 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
20 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
21 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050022 $(srcdir)/INSTALL \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050023 $(srcdir)/ChangeLog \
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 Esfahbode297ee42012-08-10 14:49:37 -040031ChangeLog:
32 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
33 (GIT_DIR=$(top_srcdir)/.git $(top_srcdir)/missing --run \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050034 git log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
Behdad Esfahbod7068e532012-08-18 13:56:10 -040035 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050036 || ($(RM) $@.tmp; \
37 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040038 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050039 else \
40 test -f $@ || \
41 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040042 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050043 fi
44.PHONY: $(srcdir)/ChangeLog
45
46
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040047#
48# Release engineering
49#
50
Behdad Esfahbod5c9f1492011-05-27 15:59:33 -040051# TODO: Copy infrastructure from cairo
52
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040053TAR_OPTIONS = --owner=0 --group=0
54dist-hook: dist-clear-sticky-bits
55# Clean up any sticky bits we may inherit from parent dir
56dist-clear-sticky-bits:
57 chmod -R a-s $(distdir)
58
59
60tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
61sha256_file = $(tar_file).sha256
62gpg_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
69release-files: $(tar_file) $(sha256_file) $(gpg_file)
70
71
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050072-include $(top_srcdir)/git.mk