• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Process this file with automake to produce Makefile.in
2
3NULL =
4
5ACLOCAL_AMFLAGS = -I m4
6
7SUBDIRS = src util test docs win32
8
9EXTRA_DIST = \
10	autogen.sh \
11	harfbuzz.doap \
12	README.python \
13	BUILD.md \
14	$(NULL)
15
16MAINTAINERCLEANFILES = \
17	$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
18	$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
19	$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
20	$(srcdir)/INSTALL \
21	$(srcdir)/ChangeLog \
22	$(srcdir)/gtk-doc.make \
23	$(srcdir)/m4/gtk-doc.m4 \
24	$(NULL)
25
26
27#
28# ChangeLog generation
29#
30CHANGELOG_RANGE =
31ChangeLog: $(srcdir)/ChangeLog
32$(srcdir)/ChangeLog:
33	$(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
34	  (GIT_DIR=$(top_srcdir)/.git \
35	   $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
36	  && mv -f $@.tmp "$(srcdir)/ChangeLog" \
37	  || ($(RM) $@.tmp; \
38	      echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
39	      (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
40	else \
41	  test -f $@ || \
42	  (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
43	  echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
44	fi
45.PHONY: ChangeLog $(srcdir)/ChangeLog
46
47
48#
49# Release engineering
50#
51
52DISTCHECK_CONFIGURE_FLAGS = \
53	--enable-gtk-doc \
54	--disable-doc-cross-references \
55	--with-gobject \
56	--enable-introspection \
57	$(NULL)
58
59# TODO: Copy infrastructure from cairo
60
61# TAR_OPTIONS is not set as env var for 'make dist'.  How to fix that?
62TAR_OPTIONS = --owner=0 --group=0
63
64dist-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
82-include $(top_srcdir)/git.mk
83