[project @ 2002-07-16 14:49:38 by simonmar]
[ghc-hetmet.git] / mk / target.mk
index f73420c..ac22224 100644 (file)
@@ -169,7 +169,7 @@ endif
 # `TAGS'
 #      Update a tags table for this program.
 # 
-# `dvi' `ps' `pdf' `html' `pdf'
+# `dvi' `ps' `pdf' `html' `rtf' 
 #      Generate DVI/PS/PDF files for LaTeX/DocBook docs. Not everything is
 #      supported everywhere, but the intention is to standardise on DocBook
 #      producing all formats.
@@ -801,10 +801,13 @@ ifneq "$(INSTALL_SGML_DOC)" ""
 ifneq "$(SGMLDocWays)" ""
 install-docs:: $(foreach i,$(SGMLDocWays),$(INSTALL_SGML_DOC).$i)
        @$(INSTALL_DIR) $(datadir)      
-       for i in $(SGMLDocWays); do \
+       @for i in $(SGMLDocWays); do \
                if [ $$i = "html" ]; then \
-                       $(CP) -r $(INSTALL_SGML_DOC) $(datadir); \
+                       $(INSTALL_DIR) $(datadir)/html; \
+                       echo $(CP) -r $(INSTALL_SGML_DOC) $(datadir)/html; \
+                       $(CP) -r $(INSTALL_SGML_DOC) $(datadir)/html; \
                else \
+                       echo $(INSTALL_DATA) $(INSTALL_OPTS) $(INSTALL_SGML_DOC).$$i $(datadir); \
                        $(INSTALL_DATA) $(INSTALL_OPTS) $(INSTALL_SGML_DOC).$$i $(datadir); \
                fi \
        done