blob: 2b3dc0baceae4a0487cd24c9c81088c4c8553624 (
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
|
dist_man_MANS =
dist_noinst_MANS =
EXTRA_DIST =
MOSTLYCLEANFILES =
MAINTAINERCLEANFILES =
# man3
includepath = -I$(top_builddir)
includevpath = $(top_builddir)
headers =
inst_symbols =
noinst_symbols =
include $(top_srcdir)/lib/Headers.mk
headers += $(libfribidi_la_headers)
includepath += -I$(top_srcdir)/lib -I$(top_builddir)/lib
includevpath += :$(top_srcdir)/lib:$(top_builddir)/lib
inst_symbols += $(libfribidi_la_symbols)
include $(top_srcdir)/charset/Headers.mk
headers += $(libfribidi_char_sets_la_headers)
includepath += -I$(top_srcdir)/charset
includevpath += :$(top_srcdir)/charset
if FRIBIDI_CHARSETS
inst_symbols += $(libfribidi_char_sets_la_symbols)
else # !FRIBIDI_CHARSETS
noinst_symbols += $(libfribidi_char_sets_la_symbols)
endif # !FRIBIDI_CHARSETS
# name of the header to include in the manual
headers += fribidi.h
dist_man_MANS += $(inst_symbols:=.3)
dist_noinst_MANS += $(noinst_symbols:=.3)
EXTRA_DIST += c2man.stamp
MOSTLYCLEANFILES += c2man.stamp.tmp
MAINTAINERCLEANFILES += $(man3) c2man.stamp
man3 = $(dist_man_MANS) $(dist_noinst_MANS)
C2MANFLAGS = $(includepath) \
-DDONT_HAVE_FRIBIDI_CONFIG_H \
-M "Programmer's Manual" \
-m "$(PACKAGE_NAME) $(PACKAGE_VERSION)"
VPATH += $(includevpath)
c2man.stamp: $(headers)
@$(RM) $@.tmp
@touch $@.tmp
($(LN_S) $^ . || cp $^ .)
$(top_srcdir)/missing --run c2man -T n $(C2MANFLAGS) $(headers) \
|| true
$(RM) $(headers)
@mv $@.tmp $@
$(man3): c2man.stamp
@if test -f $@; then \
touch $@; \
else \
$(RM) $<; \
$(MAKE) $(AM_MAKEFLAGS) $< || touch $<; \
touch $@; \
fi
|