Imported Upstream version 2.6.7
[platform/upstream/harfbuzz.git] / Makefile.am
1 # Process this file with automake to produce Makefile.in
2
3 NULL =
4
5 ACLOCAL_AMFLAGS = -I m4
6
7 SUBDIRS = src util test docs
8
9 EXTRA_DIST = \
10         autogen.sh \
11         harfbuzz.doap \
12         README.md \
13         README.python.md \
14         BUILD.md \
15         CONFIG.md \
16         RELEASING.md \
17         TESTING.md \
18         CMakeLists.txt \
19         replace-enum-strings.cmake \
20         meson.build \
21         meson_options.txt \
22         subprojects/expat.wrap \
23         subprojects/fontconfig.wrap \
24         subprojects/freetype2.wrap \
25         subprojects/glib.wrap \
26         subprojects/libffi.wrap \
27         subprojects/proxy-libintl.wrap \
28         subprojects/zlib.wrap \
29         meson-cc-tests/intel-atomic-primitives-test.c \
30         meson-cc-tests/solaris-atomic-operations.c \
31         $(NULL)
32
33 MAINTAINERCLEANFILES = \
34         $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
35         $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
36         $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
37         $(srcdir)/INSTALL \
38         $(srcdir)/ChangeLog \
39         $(srcdir)/gtk-doc.make \
40         $(srcdir)/m4/gtk-doc.m4 \
41         $(NULL)
42
43
44 #
45 # ChangeLog generation
46 #
47 CHANGELOG_RANGE =
48 ChangeLog: $(srcdir)/ChangeLog
49 $(srcdir)/ChangeLog:
50         $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
51           (GIT_DIR=$(top_srcdir)/.git \
52            $(GIT) log $(CHANGELOG_RANGE) --stat) > $@.tmp \
53           && mv -f $@.tmp "$(srcdir)/ChangeLog" \
54           || ($(RM) $@.tmp; \
55               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
56               (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
57         else \
58           test -f $@ || \
59           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
60           echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
61         fi
62 .PHONY: ChangeLog $(srcdir)/ChangeLog
63
64
65 #
66 # Release engineering
67 #
68
69 DISTCHECK_CONFIGURE_FLAGS = \
70         --enable-gtk-doc \
71         --disable-doc-cross-references \
72         --with-gobject \
73         --enable-introspection \
74         $(NULL)
75
76 # TAR_OPTIONS is not set as env var for 'make dist'.  How to fix that?
77 TAR_OPTIONS = --owner=0 --group=0
78
79 dist-hook: dist-clear-sticky-bits
80 # Clean up any sticky bits we may inherit from parent dir
81 dist-clear-sticky-bits:
82         chmod -R a-s $(distdir)
83
84 tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.xz
85 sha256_file = $(tar_file).sha256
86 gpg_file = $(sha256_file).asc
87 $(sha256_file): $(tar_file)
88         sha256sum $^ > $@
89 $(gpg_file): $(sha256_file)
90         @echo "Please enter your GPG password to sign the checksum."
91         gpg --armor --sign $^
92
93 release-files: $(tar_file) $(sha256_file) $(gpg_file)
94
95 -include $(top_srcdir)/git.mk