23 |
TEXIPOD = $(srcdir)/../contrib/texi2pod.pl |
TEXIPOD = $(srcdir)/../contrib/texi2pod.pl |
24 |
POD2MAN = pod2man |
POD2MAN = pod2man |
25 |
|
|
26 |
man_MANS = gjdoc.1 |
dist_man_MANS = gjdoc.1 |
27 |
|
|
28 |
info_TEXINFOS = gjdoc.texi |
info_TEXINFOS = gjdoc.texi |
29 |
gjdoc_TEXINFOS = invoke.texi |
gjdoc_TEXINFOS = invoke.texi |
30 |
|
|
31 |
EXTRA_DIST = gcc-common.texi fdl.texi gpl.texi $(man_MANS) |
EXTRA_DIST = gcc-common.texi fdl.texi gpl.texi |
32 |
|
|
33 |
MAKEINFOFLAGS = -I $(srcdir)/contrib/include/ -I $(srcdir)/src/docs |
MAKEINFOFLAGS = -I $(srcdir)/contrib/include/ -I $(srcdir)/src/docs |
34 |
|
|
35 |
CLEANFILES = gjdoc.pod |
CLEANFILES = gjdoc.pod |
36 |
MAINTAINERCLEANFILES = stamp-vti version.texi |
MAINTAINERCLEANFILES = stamp-vti version.texi $(dist_man_MANS) |
37 |
|
|
38 |
# The following is a neat hack which allows extracting the man page |
# The following is a neat hack which allows extracting the man page |
39 |
# from the texinfo manual. Stolen from gcc. |
# from the texinfo manual. Stolen from gcc. |
41 |
gjdoc.pod: invoke.texi |
gjdoc.pod: invoke.texi |
42 |
$(TEXIPOD) $< >$@ |
$(TEXIPOD) $< >$@ |
43 |
|
|
44 |
gjdoc.1: gjdoc.pod |
gjdoc.1: invoke.texi $(top_srcdir)/configure.ac |
45 |
$(POD2MAN) --center="GNU" --release="gjdoc-$(VERSION)" --section=1 --name=gjdoc $< >$@ |
$(MAKE) $(AM_MAKEFLAGS) gjdoc.pod |
46 |
|
$(POD2MAN) --center="GNU" --release="gjdoc-$(VERSION)" --section=1 --name=gjdoc gjdoc.pod >$@ |