summaryrefslogtreecommitdiff
path: root/pango-view/Makefile.am
blob: 49af661498843607e3c09b4fa4d61a442ab1c424 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
## Process this file with automake to create Makefile.in.

TEST_TEXTS =			\
	test-arabic.txt		\
	test-chinese.txt	\
	test-devanagari.txt	\
	test-gurmukhi.txt	\
	test-hebrew.txt		\
	test-ipa.txt		\
	test-justify.txt	\
	test-lao.txt		\
	test-latin.txt		\
	test-long-paragraph.txt	\
	test-mixed.markup	\
	test-mixed.txt		\
	test-nko.txt		\
	test-opentype-language.markup \
	test-syriac.txt		\
	test-tamil.txt		\
	test-thai.txt		\
	test-tibetan.txt	\
	HELLO.txt		\
	GLASS.txt

EXTRA_DIST =			\
	$(TEST_TEXTS)

CLEANFILES = pangorc

INCLUDES =				\
	-I$(top_srcdir)			\
	$(PANGO_DEBUG_FLAGS)		\
	$(GLIB_CFLAGS)			\
	$(XFT_CFLAGS)			\
	$(CAIRO_CFLAGS)			\
	$(FREETYPE_CFLAGS)		\
	$(X_CFLAGS)

#########################################################

bin_PROGRAMS = pango-view
pango_view_SOURCES =					\
	viewer-render.h					\
	viewer-render.c					\
	viewer.h					\
	viewer-main.c					\
	pango-view.c
pango_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)
if HAVE_X
pango_view_SOURCES +=					\
	viewer-x.h					\
	viewer-x.c					\
	viewer-pangox.c
pango_view_LDADD +=					\
	../pango/libpangox-$(PANGO_API_VERSION).la	\
	$(X_LIBS)
endif
if HAVE_FREETYPE
pango_view_SOURCES +=					\
	viewer-pangoft2.c
pango_view_LDADD +=					\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	$(FREETYPE_LIBS)
endif
if HAVE_XFT
pango_view_SOURCES +=					\
	viewer-pangoxft.c
pango_view_LDADD +=					\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangoxft-$(PANGO_API_VERSION).la	\
	$(XFT_LIBS)
endif
if HAVE_CAIRO
pango_view_SOURCES +=					\
	viewer-cairo.h					\
	viewer-cairo.c					\
	viewer-pangocairo.c
pango_view_LDADD +=					\
	../pango/libpangocairo-$(PANGO_API_VERSION).la	\
	$(CAIRO_LIBS)
endif

#########################################################

MAINTAINERCLEANFILES = pango-view.1 pango-view.stamp
EXTRA_DIST += pango-view.stamp

dist_man_MANS = pango-view.1

# The indirection through pango-view.stamp is to make parallel build work.
# See bug 587768.
pango-view.stamp: ../configure.in $(pango_view_SOURCES)
	$(AM_V_GEN) X="$(srcdir)/pango-view.1"; \
	$(top_builddir)/missing --run \
	   help2man --no-info --section=1 \
		    --help-option="--help-all" --output="$$X.tmp" \
		    --name 'Pango text viewer' ./pango-view \
	 && mv "$$X.tmp" "$$X" && touch $@ \
	  || (echo Failed to update pango-view.1, the man page may be outdated >&2; \
	      (test -f "$$X" || echo help2man is required to generate this file. >> "$$X"));
$(srcdir)/pango-view.1: pango-view$(EXEEXT) pango-view.stamp
	$(AM_V_GEN) if test -f $@; then touch $@; else \
		$(RM) pango-view.stamp; \
		$(MAKE) $(AM_MAKEFLAGS) pango-view.stamp; \
	fi

#########################################################

BUILT_SOURCES = pangorc

pangorc: $(srcdir)/../modules/pangorc
	cp $(srcdir)/../modules/pangorc $@

-include $(top_srcdir)/git.mk