2 ## Process this file with automake to produce Makefile.in
4 ACLOCAL_AMFLAGS = -I m4
6 ## The order of subdirs is important, don't change without a reason.
7 SUBDIRS = gen.tab lib bin doc test
9 EXTRA_DIST = autogen.sh ChangeLog.old \
10 meson.build meson_options.txt bin/meson.build doc/meson.build \
11 gen.tab/meson.build lib/meson.build test/meson.build \
12 test/test-runner.py test/unicode-conformance/meson.build
14 pkgconfigdir = $(libdir)/pkgconfig
15 pkgconfig_DATA = @PACKAGE@.pc
17 BUILT_SOURCES = lib/fribidi-unicode-version.h
18 lib/fribidi-unicode-version.h:
19 (cd lib && $(MAKE) $(AM_MAKEFLAGS) fribidi-unicode-version.h)
21 MAINTAINERCLEANFILES = \
23 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
24 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
25 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL)
27 # Indent all C source and header files, using indent(1):
29 indent: $(srcdir)/.indent.pro
31 find . -mindepth 2 -type f -name "*.[ch]" -print | \
32 xargs ./missing --run indent
37 # ChangeLog generation
41 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
42 (GIT_DIR=$(top_srcdir)/.git $(top_srcdir)/missing --run \
43 git log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
44 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
46 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
47 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
50 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
51 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
53 .PHONY: $(srcdir)/ChangeLog
59 TAR_OPTIONS = --owner=0 --group=0
60 dist-hook: dist-clear-sticky-bits
61 # Clean up any sticky bits we may inherit from parent dir
62 dist-clear-sticky-bits:
63 chmod -R a-s $(distdir)
66 tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
67 sha256_file = $(tar_file).sha256
68 gpg_file = $(sha256_file).asc
69 $(sha256_file): $(tar_file)
71 $(gpg_file): $(sha256_file)
72 @echo "Please enter your GPG password to sign the checksum."
75 release-files: $(tar_file) $(sha256_file) $(gpg_file)
78 -include $(top_srcdir)/git.mk