summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 3de1fadbb2b39315f83fca0c2eef880da026b136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
## Process this file with automake to create Makefile.in.

SUBDIRS= pango pango-view examples docs tools tests win32

meson_dist_files = \
	pango/pango-features.h.meson \
	pango-view/meson.build \
	meson.build \
	meson_options.txt \
	pango/meson.build \
	docs/meson.build \
	docs/xml/meson.build \
	docs/xml/gtkdocentities.ent.in \
	examples/meson.build \
	tools/meson.build \
	tests/meson.build \
	tests/gen-all-unicode.py \
	tests/gen-installed-test.py \
	$()

EXTRA_DIST = 			\
	autogen.sh		\
	pango.pc.in		\
	pangocairo.pc.in	\
	pangoxft.pc.in		\
	pangoft2.pc.in		\
	pangowin32.pc.in	\
	MAINTAINERS		\
	HACKING			\
	README.win32		\
	config.h.win32		\
	pango.doap		\
	$(meson_dist_files)

MAINTAINERCLEANFILES = \
	$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
	$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
	$(srcdir)/INSTALL \
	$(srcdir)/omf.make \
	$(srcdir)/xmldocs.make \
	$(srcdir)/gtk-doc.make \
	$(srcdir)/ChangeLog

### ChangeLog generation

CHANGELOG_START = "`git describe --abbrev=0 | sed -e 's|\([0-9]*\)\.\([0-9]*\)\.[0-9]*|\1.\2.0^^|'`"

ChangeLog: $(srcdir)/ChangeLog
$(srcdir)/ChangeLog:
	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
	  (GIT_DIR=$(top_srcdir)/.git ./missing --run \
	   git log $(CHANGELOG_START).. --stat) | fmt --split-only > $@.tmp \
	  && mv -f $@.tmp $@ \
	  || ($(RM) $@.tmp; \
	      echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
	      (test -f $@ || echo git-log is required to generate this file >> $@)); \
	else \
	  test -f $@ || \
	  (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
	  echo A git checkout and git-log is required to generate this file >> $@); \
	fi
.PHONY: $(srcdir)/ChangeLog


pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pango.pc

if HAVE_CAIRO
pkgconfig_DATA += pangocairo.pc
endif

if HAVE_XFT
pkgconfig_DATA += pangoxft.pc
endif

if HAVE_FREETYPE
pkgconfig_DATA += pangoft2.pc
endif

if HAVE_WIN32
pkgconfig_DATA += pangowin32.pc
endif

DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-man --disable-doc-cross-references --enable-introspection

-include $(top_srcdir)/git.mk