blob: 6a67f2a0ab7cb9c955322a4a3c365dc08b0c9f18 (
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
|
dist_man_MANS =
dist_noinst_MANS =
EXTRA_DIST =
MOSTLYCLEANFILES =
MAINTAINERCLEANFILES =
if FRIBIDI_ENABLE_DOC
# man3
includepath =
includevpath =
headers =
inst_symbols =
noinst_symbols =
# The lib/Headers.mk stuff should come after all optional stuff.
include $(top_srcdir)/lib/Headers.mk
headers += $(libfribidi_la_headers)
includepath += -I$(top_builddir)/lib -I$(top_srcdir)/lib
includevpath += :$(top_builddir)/lib:$(top_srcdir)/lib
# The las two lines are not functions, we don't want them here.
inst_symbols += $(shell sed '$$d' $(top_srcdir)/lib/fribidi.def | sed '$$d')
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) \
-D__FRIBIDI_DOC \
-DDONT_HAVE_FRIBIDI_CONFIG_H \
-M "Programmer's Manual"
VPATH += $(includevpath)
c2man.stamp: $(headers)
@$(RM) $@.tmp
@touch $@.tmp
@($(LN_S) $^ . || cp $^ .)
@echo Running c2man
@$(C2MAN) -T n $(C2MANFLAGS) $(headers) 2>&1
@$(RM) $(headers)
@mv $@.tmp $@
$(man3): c2man.stamp
@if ! test -f $@; then \
$(RM) $<; \
$(MAKE) $(AM_MAKEFLAGS) $<;\
fi
@touch $@
endif # FRIBIDI_ENABLE_DOC
-include $(top_srcdir)/git.mk
|