Fix another bug in make install for fwg (complained becuase there were no pngs to...
authorRichard Boulton <richard@tartarus.org>
Sun, 31 Dec 2000 14:22:59 +0000 (14:22 +0000)
committerRichard Boulton <richard@tartarus.org>
Sun, 31 Dec 2000 14:22:59 +0000 (14:22 +0000)
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

index 859b622..4f31888 100644 (file)
@@ -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 \