From 15f298e7cbf0a6d33334cd2d5de7267ed590e604 Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Sun, 14 Jan 2001 22:25:43 +0000 Subject: [PATCH] Fix build problem when don't have db2html, or a directory to put the manual in: was trying to make a symlink in the n... Original commit message from CVS: Fix build problem when don't have db2html, or a directory to put the manual in: was trying to make a symlink in the non-existant directory, and causing the build to stop. --- docs/manuals.mak | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/manuals.mak b/docs/manuals.mak index 7ebdb15ff5..88650bdd1d 100644 --- a/docs/manuals.mak +++ b/docs/manuals.mak @@ -11,11 +11,12 @@ PDFFILES=$(manualname).pdf PSFILES=$(manualname).ps if HAVE_FIG2DEV_PNG -$(manualname)/$(htmlname): $(sgml_files) $(png_files) +PNGS_TO_MAKE=$(png_files) else -$(manualname)/$(htmlname): $(sgml_files) +PNGS_TO_MAKE= endif +$(manualname)/$(htmlname): $(sgml_files) $(PNGS_TO_MAKE) if HAVE_DB2HTML db2html $(manualname).sgml else @@ -54,7 +55,11 @@ images/%.eps : %.fig images endif $(manualname)/images: - @ln -sf ../images $(manualname)/images + @if [ -d $(manualname) ] ; then \ + if [ -d images ] ; then \ + ln -sf ../images $(manualname)/images ;\ + fi \ + fi htmldocs: $(manualname)/$(htmlname) $(manualname)/images htmldist: htmldocs