1# man pages that go into section 3:
2man3_MANS = libunwind.man libunwind-dynamic.man libunwind-ia64.man	\
3	libunwind-ptrace.man libunwind-setjmp.man			\
4	unw_backtrace.man						\
5	unw_flush_cache.man						\
6	unw_get_accessors.man						\
7	unw_get_proc_info.man						\
8	unw_get_proc_info_by_ip.man					\
9	unw_get_proc_name.man						\
10	unw_get_fpreg.man						\
11	unw_get_reg.man							\
12	unw_getcontext.man						\
13	unw_init_local.man unw_init_remote.man				\
14	unw_is_fpreg.man						\
15	unw_is_signal_frame.man						\
16	unw_create_addr_space.man					\
17	unw_destroy_addr_space.man					\
18	unw_regname.man unw_resume.man					\
19	unw_set_caching_policy.man					\
20	unw_set_fpreg.man						\
21	unw_set_reg.man							\
22	unw_step.man							\
23	unw_strerror.man						\
24	_U_dyn_register.man						\
25	_U_dyn_cancel.man
26
27EXTRA_DIST = NOTES libunwind.trans					\
28	libunwind.tex libunwind-dynamic.tex libunwind-ia64.tex		\
29	libunwind-ptrace.tex libunwind-setjmp.tex			\
30	unw_backtrace.tex						\
31	unw_flush_cache.tex						\
32	unw_get_accessors.tex						\
33	unw_get_proc_info.tex						\
34	unw_get_proc_info_by_ip.tex					\
35	unw_get_proc_name.tex						\
36	unw_get_fpreg.tex						\
37	unw_get_reg.tex							\
38	unw_getcontext.tex						\
39	unw_init_local.tex unw_init_remote.tex				\
40	unw_is_fpreg.tex						\
41	unw_is_signal_frame.tex						\
42	unw_create_addr_space.tex unw_destroy_addr_space.tex		\
43	unw_regname.tex unw_resume.tex unw_set_caching_policy.tex	\
44	unw_set_fpreg.tex						\
45	unw_set_reg.tex							\
46	unw_step.tex							\
47	unw_strerror.tex						\
48	_U_dyn_register.tex						\
49	_U_dyn_cancel.tex						\
50	$(man3_MANS)
51
52L2M	= latex2man
53L2P	= pdflatex
54L2M_CMD	= $(L2M) -t $(srcdir)/libunwind.trans
55L2H_CMD	= $(L2M) -H -t $(srcdir)/libunwind.trans
56
57.tex.man:
58	$(L2M_CMD) $< $@
59	-cp $@ $(srcdir)/$@
60
61html:
62	for n in $(man3_MANS); do					\
63		page=`basename $$n .man`;				\
64		$(L2H_CMD) $(srcdir)/$$page.tex "$$page(3).raw";	\
65	done
66
67pdf:
68	for n in $(man3_MANS); do					\
69		page=`basename $$n .man`;				\
70		$(L2P) $(srcdir)/$$page.tex "$$page(3).pdf";		\
71	done
72
73MAINTAINERCLEANFILES = Makefile.in
74