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 $
6 ## $Date: 2005-08-25 18:35:34 $
8 ## $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/Makefile.am,v $
9 ##############################################################################
11 ACLOCAL_AMFLAGS = -I m4
13 ## The order of subdirs is important, don't change without a reason.
14 SUBDIRS = gen.tab charset lib bin doc test
16 EXTRA_DIST = bootstrap ChangeLog.old
18 pkgconfigdir = $(libdir)/pkgconfig
19 pkgconfig_DATA = @PACKAGE@.pc
21 BUILT_SOURCES = lib/fribidi-unicode-version.h
22 lib/fribidi-unicode-version.h:
23 (cd lib && $(MAKE) $(AM_MAKEFLAGS) fribidi-unicode-version.h)
25 MAINTAINERCLEANFILES = \
27 $(srcdir)/aclocal.m4 \
28 $(srcdir)/autoscan.log \
30 $(srcdir)/config.guess \
31 $(srcdir)/config.h.in \
32 $(srcdir)/config.sub \
33 $(srcdir)/configure.scan \
35 $(srcdir)/install-sh \
38 $(srcdir)/mkinstalldirs \
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.
47 # Indent all C source and header files, using indent(1):
49 indent: $(srcdir)/.indent.pro
51 find . -mindepth 2 -type f -name "*.[ch]" -print | \
52 xargs ./missing --run indent
57 # ChangeLog generation
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" \
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)/$@")); \
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)/$@"); \
73 .PHONY: $(srcdir)/ChangeLog
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)
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)
91 $(gpg_file): $(sha256_file)
92 @echo "Please enter your GPG password to sign the checksum."
95 release-files: $(tar_file) $(sha256_file) $(gpg_file)
98 -include $(top_srcdir)/git.mk