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.
This commit is contained in:
Richard Boulton 2001-01-14 22:25:43 +00:00
parent a4e3d04aeb
commit 15f298e7cb

View file

@ -11,11 +11,12 @@ PDFFILES=$(manualname).pdf
PSFILES=$(manualname).ps PSFILES=$(manualname).ps
if HAVE_FIG2DEV_PNG if HAVE_FIG2DEV_PNG
$(manualname)/$(htmlname): $(sgml_files) $(png_files) PNGS_TO_MAKE=$(png_files)
else else
$(manualname)/$(htmlname): $(sgml_files) PNGS_TO_MAKE=
endif endif
$(manualname)/$(htmlname): $(sgml_files) $(PNGS_TO_MAKE)
if HAVE_DB2HTML if HAVE_DB2HTML
db2html $(manualname).sgml db2html $(manualname).sgml
else else
@ -54,7 +55,11 @@ images/%.eps : %.fig images
endif endif
$(manualname)/images: $(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 htmldocs: $(manualname)/$(htmlname) $(manualname)/images
htmldist: htmldocs htmldist: htmldocs