1999-10-31 Ulrich Drepper <drepper@cygnus.com>
+ * Makefile (pdf): New goal.
+ * manual/Makefile: Add definitions and rules for PDF generation.
+
* Versions.def (libm): Add GLIBC_2.1.3.
ISO C99 TR1 changes various fe* functions to return an error value.
cd $(<D) && CONFIG_FILES=$(@F) CONFIG_HEADERS= $(SHELL) $(<F)
\f
# This makes the Info or DVI file of the documentation from the Texinfo source.
-.PHONY: info dvi
-info dvi:
+.PHONY: info dvi pdf
+info dvi pdf:
$(MAKE) $(PARALLELMFLAGS) -C manual $@
\f
# This makes all the subdirectory targets.
# 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))
AWK = gawk
endif
+TEXI2PDF = pdftexinfo
+
ifneq ($(strip $(MAKEINFO)),)
all: info
info: libc.info dir-add.info
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 ;
%.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 \
.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