add packaging
[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         Android.mk \
13         $(NULL)
14
15 MAINTAINERCLEANFILES = \
16         $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
17         $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
18         $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
19         $(srcdir)/INSTALL \
20         $(srcdir)/ChangeLog \
21         $(NULL)
22
23
24 #
25 # ChangeLog generation
26 #
27 CHANGELOG_RANGE =
28 ChangeLog: $(srcdir)/ChangeLog
29 $(srcdir)/ChangeLog:
30         $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
31           (GIT_DIR=$(top_srcdir)/.git \
32            $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
33           && mv -f $@.tmp "$(srcdir)/ChangeLog" \
34           || ($(RM) $@.tmp; \
35               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
36               (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
37         else \
38           test -f $@ || \
39           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
40           echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
41         fi
42 .PHONY: ChangeLog $(srcdir)/ChangeLog
43
44
45 #
46 # Release engineering
47 #
48
49 DISTCHECK_CONFIGURE_FLAGS = \
50         --enable-gtk-doc \
51         --disable-doc-cross-references \
52         --with-gobject \
53         --enable-introspection \
54         $(NULL)
55
56 # TODO: Copy infrastructure from cairo
57
58 # TAR_OPTIONS is not set as env var for 'make dist'.  How to fix that?
59 TAR_OPTIONS = --owner=0 --group=0
60
61 dist-hook: dist-clear-sticky-bits
62 # Clean up any sticky bits we may inherit from parent dir
63 dist-clear-sticky-bits:
64         chmod -R a-s $(distdir)
65
66
67 tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
68 sha256_file = $(tar_file).sha256
69 gpg_file = $(sha256_file).asc
70 $(sha256_file): $(tar_file)
71         sha256sum $^ > $@
72 $(gpg_file): $(sha256_file)
73         @echo "Please enter your GPG password to sign the checksum."
74         gpg --armor --sign $^
75
76 release-files: $(tar_file) $(sha256_file) $(gpg_file)
77
78
79 -include $(top_srcdir)/git.mk