aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-01 00:30:17 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-01 00:30:17 +0000
commit1830a0d541a97bb3ad59d06c233fc67fb2e05898 (patch)
treeda70ab078b919b273d7d2cd1dcc4db59f322b90e /manual
parent7210de33793bc5804291d13b543b3f452831013b (diff)
downloadglibc-1830a0d541a97bb3ad59d06c233fc67fb2e05898.tar
glibc-1830a0d541a97bb3ad59d06c233fc67fb2e05898.tar.gz
glibc-1830a0d541a97bb3ad59d06c233fc67fb2e05898.tar.bz2
glibc-1830a0d541a97bb3ad59d06c233fc67fb2e05898.zip
Update.
* Makefile (pdf): New goal. * manual/Makefile: Add definitions and rules for PDF generation.
Diffstat (limited to 'manual')
-rw-r--r--manual/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/manual/Makefile b/manual/Makefile
index 4b88543129..cc4e200c8a 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -24,9 +24,10 @@ export subdir := $(subdir)
# Allow override
INSTALL_INFO = install-info
-.PHONY: all dvi info
+.PHONY: all dvi pdf info
all: dvi
dvi: libc.dvi
+pdf: libc.pdf
# Get glibc's configuration info.
ifneq (,$(wildcard ../Makeconfig))
@@ -37,6 +38,8 @@ TEXI2DVI = texi2dvi
AWK = gawk
endif
+TEXI2PDF = pdftexinfo
+
ifneq ($(strip $(MAKEINFO)),)
all: info
info: libc.info dir-add.info
@@ -69,8 +72,8 @@ examples = $(filter-out $(foreach d, $(add-ons), ../$d/%.c.texi), \
chapters.% top-menu.%: libc-texinfo.sh $(texis)
AWK=$(AWK) $(SHELL) $< '$(chapters)' '$(add-chapters)' '$(appendices)'
-libc.dvi libc.info: chapters.texi top-menu.texi libm-err.texi
-libc.dvi: texinfo.tex
+libc.dvi libc.pdf libc.info: chapters.texi top-menu.texi libm-err.texi
+libc.dvi libc.pdf: texinfo.tex
# Generate the summary from the Texinfo source files for each chapter.
summary.texi: stamp-summary ;
@@ -113,6 +116,9 @@ stamp-libm-err: libm-err-tab.pl $(wildcard $(foreach dir,$(sysdirs),\
%.dvi: %.texinfo
$(TEXI2DVI) $<
+%.pdf: %.texinfo
+ $(TEXI2PDF) $<
+
# Distribution.
minimal-dist = summary.awk texis.awk tsort.awk libc-texinfo.sh libc.texinfo \
libm-err.texi stamp-libm-err \
@@ -151,7 +157,7 @@ glibc-doc-$(edition).tar: $(doc-only-dist) $(distribute)
.PHONY: mostlyclean distclean realclean clean
mostlyclean:
- -rm -f libc.dvi libc.tmp libc.info* dir-add.info
+ -rm -f libc.dvi libc.pdf libc.tmp libc.info* dir-add.info
-rm -f $(objpfx)stubs $(objpfx)distinfo
-rm -f $(foreach o,$(object-suffixes-for-libc),$(objpfx)stamp$o)
clean: mostlyclean