2003-01-17 08:48:52 +01:00
|
|
|
# man pages that go into section 3:
|
2003-02-08 11:10:59 +01:00
|
|
|
man3_MANS = $(srcdir)/libunwind.man $(srcdir)/libunwind-ia64.man \
|
|
|
|
$(srcdir)/libunwind-ptrace.man $(srcdir)/libunwind-setjmp.man \
|
2003-03-11 02:05:47 +01:00
|
|
|
$(srcdir)/unw_init_local.man $(srcdir)/unw_init_remote.man \
|
|
|
|
$(srcdir)/unw_create_addr_space.man \
|
|
|
|
$(srcdir)/unw_destroy_addr_space.man \
|
2003-02-08 11:10:59 +01:00
|
|
|
$(srcdir)/unw_resume.man
|
2003-01-17 08:48:52 +01:00
|
|
|
|
2003-01-28 08:32:15 +01:00
|
|
|
EXTRA_DIST = NOTES libunwind.trans \
|
|
|
|
libunwind.tex libunwind-ia64.tex libunwind-ptrace.tex \
|
2003-03-11 02:05:47 +01:00
|
|
|
libunwind-setjmp.tex \
|
|
|
|
unw_init_local.tex unw_init_remote.tex unw_resume.tex \
|
|
|
|
unw_create_addr_space.tex unw_destroy_addr_space.tex \
|
2003-01-18 09:10:40 +01:00
|
|
|
$(man3_MANS)
|
2003-01-17 08:48:52 +01:00
|
|
|
|
|
|
|
L2M = latex2man
|
2003-01-18 09:10:40 +01:00
|
|
|
L2P = pdflatex
|
2003-01-17 08:48:52 +01:00
|
|
|
L2M_CMD = $(L2M) -t $(srcdir)/libunwind.trans
|
|
|
|
L2H_CMD = $(L2M) -H -t $(srcdir)/libunwind.trans
|
|
|
|
|
|
|
|
.tex.man:
|
2003-01-18 09:10:40 +01:00
|
|
|
-bk get -e $@
|
2003-01-17 08:48:52 +01:00
|
|
|
$(L2M_CMD) $< $@
|
|
|
|
|
|
|
|
html:
|
2003-01-18 09:10:40 +01:00
|
|
|
for n in $(man3_MANS); do \
|
|
|
|
page=`basename $$n .man`; \
|
|
|
|
$(L2H_CMD) $(srcdir)/$$page.tex "$$page(3).php"; \
|
|
|
|
done
|
|
|
|
|
|
|
|
pdf:
|
|
|
|
for n in $(man3_MANS); do \
|
|
|
|
page=`basename $$n .man`; \
|
|
|
|
$(L2P) $(srcdir)/$$page.tex "$$page(3).pdf"; \
|
2003-01-17 08:48:52 +01:00
|
|
|
done
|