blob: eb46ceaa044320b5e9cdc88b8d95b8ac06bb7f66 [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 \
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +043012 README.python.md \
13 README.wine.md \
Behdad Esfahbod6486e372015-10-20 16:39:41 -020014 BUILD.md \
Behdad Esfahboddb446cc2017-10-01 12:06:00 -040015 RELEASING.md \
ebraminio7d64c0e2017-04-04 15:03:51 +043016 CMakeLists.txt \
Chun-wei Fan53db2212017-10-18 15:43:57 +080017 replace-enum-strings.cmake \
Behdad Esfahbodabe636b2011-05-10 17:55:40 -040018 $(NULL)
Behdad Esfahbod8a7d1682009-12-15 03:53:45 -050019
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050020MAINTAINERCLEANFILES = \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050021 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
22 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
23 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050024 $(srcdir)/INSTALL \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050025 $(srcdir)/ChangeLog \
Behdad Esfahbod6c918e22015-02-26 13:55:34 -080026 $(srcdir)/gtk-doc.make \
Behdad Esfahbodca539e32016-02-22 15:37:18 +090027 $(srcdir)/m4/gtk-doc.m4 \
Behdad Esfahbod22c625a2013-03-04 20:56:15 -050028 $(NULL)
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050029
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050030
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040031#
32# ChangeLog generation
33#
34CHANGELOG_RANGE =
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040035ChangeLog: $(srcdir)/ChangeLog
36$(srcdir)/ChangeLog:
Behdad Esfahbode297ee42012-08-10 14:49:37 -040037 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
Behdad Esfahbodbb8ffb52014-03-04 13:03:51 -080038 (GIT_DIR=$(top_srcdir)/.git \
39 $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
Behdad Esfahbod7068e532012-08-18 13:56:10 -040040 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050041 || ($(RM) $@.tmp; \
42 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040043 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050044 else \
45 test -f $@ || \
46 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
Behdad Esfahbode297ee42012-08-10 14:49:37 -040047 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050048 fi
Behdad Esfahbod280e52a2013-05-30 18:04:24 -040049.PHONY: ChangeLog $(srcdir)/ChangeLog
Behdad Esfahbod5932f8f2009-11-02 16:38:41 -050050
51
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040052#
53# Release engineering
54#
55
Anthony Carricof7c72b42013-02-24 13:00:33 -050056DISTCHECK_CONFIGURE_FLAGS = \
57 --enable-gtk-doc \
58 --disable-doc-cross-references \
Behdad Esfahbodb0e03502013-08-29 15:56:32 -040059 --with-gobject \
60 --enable-introspection \
Anthony Carricof7c72b42013-02-24 13:00:33 -050061 $(NULL)
62
Behdad Esfahbod5c9f1492011-05-27 15:59:33 -040063# TODO: Copy infrastructure from cairo
64
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040065# TAR_OPTIONS is not set as env var for 'make dist'. How to fix that?
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040066TAR_OPTIONS = --owner=0 --group=0
Behdad Esfahbod74ff41c2013-09-03 20:09:14 -040067
Behdad Esfahbod3f12c432011-05-27 04:58:11 -040068dist-hook: dist-clear-sticky-bits
69# Clean up any sticky bits we may inherit from parent dir
70dist-clear-sticky-bits:
71 chmod -R a-s $(distdir)
72
73
74tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
75sha256_file = $(tar_file).sha256
76gpg_file = $(sha256_file).asc
77$(sha256_file): $(tar_file)
78 sha256sum $^ > $@
79$(gpg_file): $(sha256_file)
80 @echo "Please enter your GPG password to sign the checksum."
81 gpg --armor --sign $^
82
83release-files: $(tar_file) $(sha256_file) $(gpg_file)
84
85
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050086-include $(top_srcdir)/git.mk