35d77213d4b94764d06de661efde31d6ca82589c
[platform/upstream/fribidi.git] / Makefile.am
1 ##                                               -*- Automake -*-
2 ## Process this file with automake to produce Makefile.in
3 ##############################################################################
4 ## $Id: Makefile.am,v 1.10 2005-08-25 18:35:34 behdad Exp $
5 ## $Author: behdad $
6 ## $Date: 2005-08-25 18:35:34 $
7 ## $Revision: 1.10 $
8 ## $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/Makefile.am,v $
9 ##############################################################################
10
11 ## The order of subdirs is important, don't change without a reason.
12 SUBDIRS = gen.tab charset lib bin doc test
13
14 EXTRA_DIST = bootstrap ChangeLog.old
15
16 pkgconfigdir = $(libdir)/pkgconfig
17 pkgconfig_DATA = @PACKAGE@.pc
18
19 BUILT_SOURCES = lib/fribidi-unicode-version.h
20 lib/fribidi-unicode-version.h:
21         (cd lib && $(MAKE) $(AM_MAKEFLAGS) fribidi-unicode-version.h)
22
23 MAINTAINERCLEANFILES = \
24                 $(srcdir)/INSTALL \
25                 $(srcdir)/aclocal.m4 \
26                 $(srcdir)/autoscan.log \
27                 $(srcdir)/compile \
28                 $(srcdir)/config.guess \
29                 $(srcdir)/config.h.in \
30                 $(srcdir)/config.sub \
31                 $(srcdir)/configure.scan \
32                 $(srcdir)/depcomp \
33                 $(srcdir)/install-sh \
34                 $(srcdir)/ltmain.sh \
35                 $(srcdir)/missing \
36                 $(srcdir)/mkinstalldirs \
37                 $(srcdir)/ChangeLog \
38                 `find "$(srcdir)" -type f -name Makefile.in -print` \
39                 `$(srcdir)/bootstrap --write-configure`
40 # The last line above is a horrible hack.
41 # GNU Coding Standards recommends that `make maintainer-clean' should not 
42 # remove the configure script.
43 # We instead make configure call bootstrap.
44
45 # Indent all C source and header files, using indent(1):
46
47 indent: $(srcdir)/.indent.pro
48         cd "$(srcdir)" && \
49         find . -mindepth 2 -type f -name "*.[ch]" -print | \
50           xargs ./missing --run indent
51
52 .PHONY: indent
53
54 #
55 # ChangeLog generation
56 #
57 CHANGELOG_RANGE =
58 ChangeLog:
59         $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
60           (GIT_DIR=$(top_srcdir)/.git $(top_srcdir)/missing --run \
61            git log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
62           && mv -f $@.tmp "$(srcdir)/ChangeLog" \
63           || ($(RM) $@.tmp; \
64               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
65               (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
66         else \
67           test -f $@ || \
68           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
69           echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
70         fi
71 .PHONY: $(srcdir)/ChangeLog
72
73 #
74 # Release engineering
75 #
76
77 TAR_OPTIONS = --owner=0 --group=0
78 dist-hook: dist-clear-sticky-bits
79 # Clean up any sticky bits we may inherit from parent dir
80 dist-clear-sticky-bits:
81         chmod -R a-s $(distdir)
82
83
84 tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
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
96 -include $(top_srcdir)/git.mk