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