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