From 44e2bda95f5214d5549659e9002736e8581d45b2 Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Sun, 31 Dec 2000 14:22:59 +0000 Subject: [PATCH] Fix another bug in make install for fwg (complained becuase there were no pngs to install). Original commit message from CVS: Fix another bug in make install for fwg (complained becuase there were no pngs to install). I should have got up more slowly today... --- docs/manuals.mak | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/manuals.mak b/docs/manuals.mak index 859b6226ea..4f3188850d 100644 --- a/docs/manuals.mak +++ b/docs/manuals.mak @@ -73,14 +73,20 @@ htmlinst: $(mkinstalldirs) $(DESTDIR)$(docdatadir)/$(manualname) ; \ $(mkinstalldirs) $(DESTDIR)$(docdatadir)/$(manualname)/images ; \ $(INSTALL_DATA) $(manualname)/*.html $(DESTDIR)$(docdatadir)/$(manualname) ; \ - for a in $(png_files); do $(INSTALL_DATA) $$a $(DESTDIR)$(docdatadir)/$(manualname)/images ; done \ + for a in "x" $(png_files); do \ + if [ "x$$a" != "xx" ] ; then \ + $(INSTALL_DATA) $$a $(DESTDIR)$(docdatadir)/$(manualname)/images ; \ + fi; done \ else \ if [ -r $(srcdir)/$(manualname)/$(htmlname) ] ; then \ echo "Installing $(srcdir)/$(manualname)" ; \ $(mkinstalldirs) $(DESTDIR)$(docdatadir)/$(manualname) ; \ $(mkinstalldirs) $(DESTDIR)$(docdatadir)/$(manualname)/images ; \ $(INSTALL_DATA) $(srcdir)/$(manualname)/*.html $(DESTDIR)$(docdatadir)/$(manualname) ; \ - for a in $(png_files); do $(INSTALL_DATA) $$a $(DESTDIR)$(docdatadir)/$(manualname)/images ; done \ + for a in "x" $(png_files); do \ + if [ "x$$a" != "xx" ] ; then \ + $(INSTALL_DATA) $$a $(DESTDIR)$(docdatadir)/$(manualname)/images ; \ + fi; done \ else \ echo "NOT installing HTML documentation: not present, and can't generate" ; \ fi \