1 # Process this file with automake to produce Makefile.in
5 ACLOCAL_AMFLAGS = -I m4
7 SUBDIRS = src util test docs
20 replace-enum-strings.cmake \
27 MAINTAINERCLEANFILES = \
28 $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
29 $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
30 $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
33 $(srcdir)/gtk-doc.make \
34 $(srcdir)/m4/gtk-doc.m4 \
39 # ChangeLog generation
42 ChangeLog: $(srcdir)/ChangeLog
44 $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
45 (GIT_DIR=$(top_srcdir)/.git \
46 $(GIT) log $(CHANGELOG_RANGE) --stat) > $@.tmp \
47 && mv -f $@.tmp "$(srcdir)/ChangeLog" \
49 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
50 (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
53 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
54 echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
56 .PHONY: ChangeLog $(srcdir)/ChangeLog
63 DISTCHECK_CONFIGURE_FLAGS = \
65 --disable-doc-cross-references \
67 --enable-introspection \
70 # TAR_OPTIONS is not set as env var for 'make dist'. How to fix that?
71 TAR_OPTIONS = --owner=0 --group=0
73 dist-hook: dist-clear-sticky-bits
74 # Clean up any sticky bits we may inherit from parent dir
75 dist-clear-sticky-bits:
76 chmod -R a-s $(distdir)
78 tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.xz
79 sha256_file = $(tar_file).sha256
80 gpg_file = $(sha256_file).asc
81 $(sha256_file): $(tar_file)
83 $(gpg_file): $(sha256_file)
84 @echo "Please enter your GPG password to sign the checksum."
87 release-files: $(tar_file) $(sha256_file) $(gpg_file)
90 @case $(host_triplet) in *-w64-mingw32) ;; *) echo "Error: Requires mingw build. See README.mingw.md.">&2; exit 1 ;; esac
91 @DIR=$(PACKAGE_TARNAME)-$(VERSION)-win`case $(host_triplet) in i686-*) echo 32 ;; x86_64-*) echo 64 ;; esac`; \
92 $(RM) -r $$DIR; $(MKDIR_P) $$DIR || exit 1; \
93 cp util/.libs/hb-{shape,view,subset}.exe $$DIR && \
94 $(top_srcdir)/mingw-ldd.py $$DIR/hb-view.exe | grep -v 'not found' | cut -d '>' -f 2 | xargs cp -t $$DIR && \
95 cp src/.libs/libharfbuzz{,-subset}-0.dll $$DIR && \
96 chmod a+x $$DIR/*.{exe,dll} && \
97 $(STRIP) $$DIR/*.{exe,dll} && \
98 zip -r $$DIR.zip $$DIR && \
100 echo "$$DIR.zip is ready."
103 -include $(top_srcdir)/git.mk