16 # The lib/Headers.mk stuff should come after all optional stuff.
17 include $(top_srcdir)/lib/Headers.mk
18 headers += $(libfribidi_la_headers)
19 includepath += -I$(top_builddir)/lib -I$(top_srcdir)/lib
20 includevpath += :$(top_builddir)/lib:$(top_srcdir)/lib
21 # The las two lines are not functions, we don't want them here.
22 inst_symbols += $(shell sed '$$d' $(top_srcdir)/lib/fribidi.def | sed '$$d')
24 dist_man_MANS += $(inst_symbols:=.3)
25 dist_noinst_MANS += $(noinst_symbols:=.3)
26 EXTRA_DIST += c2man.stamp
27 MOSTLYCLEANFILES += c2man.stamp.tmp
28 MAINTAINERCLEANFILES += $(man3) c2man.stamp
30 man3 = $(dist_man_MANS) $(dist_noinst_MANS)
32 C2MANFLAGS = $(includepath) \
34 -DDONT_HAVE_FRIBIDI_CONFIG_H \
35 -M "Programmer's Manual"
37 VPATH += $(includevpath)
39 c2man.stamp: $(headers)
42 @($(LN_S) $^ . || cp $^ .)
44 @$(C2MAN) -T n $(C2MANFLAGS) $(headers) 2>&1
49 @if ! test -f $@; then \
51 $(MAKE) $(AM_MAKEFLAGS) $<;\
55 endif # FRIBIDI_ENABLE_DOC
57 -include $(top_srcdir)/git.mk