[project @ 1997-12-16 12:48:40 by simonm]
authorsimonm <unknown>
Tue, 16 Dec 1997 12:48:40 +0000 (12:48 +0000)
committersimonm <unknown>
Tue, 16 Dec 1997 12:48:40 +0000 (12:48 +0000)
build SGML documentation using the normal 'gmake dvi' etc.

mk/target.mk

index 0063907..ce64062 100644 (file)
@@ -869,6 +869,30 @@ else
        cp $(TEXI2HTML_PREFIX)invisible.xbm html/
        @touch $@
 endif
+
+#--------------------------------------------------------------------------
+# SGML Documentation
+#
+# This will eventually replace the literate stuff for documentation
+
+SGML_SRCS = $(wildcard    *.sgml *.vsgml)
+SGML_DVI  = $(addsuffix  .dvi, $(basename $(SGML_SRCS)))
+SGML_PS   = $(addsuffix   .ps, $(basename $(SGML_SRCS)))
+SGML_TEXI = $(addsuffix .texi, $(basename $(SGML_SRCS)))
+SGML_INFO = $(addsuffix .info, $(basename $(SGML_SRCS)))
+SGML_HTML = $(addsuffix .html, $(basename $(SGML_SRCS)))
+SGML_TEXT = $(addsuffix  .txt, $(basename $(SGML_SRCS)))
+
+dvi  :: $(SGML_DVI)
+info :: $(SGML_INFO)
+html :: $(SGML_HTML)
+txt  :: $(SGML_TXT)
+ps   :: $(SGML_PS)
+
+CLEAN_FILES += $(SGML_TEXT) $(SGML_HTML) $(SGML_TEXI) $(SGML_PS) $(SGML_DVI)
+
+# suffix rules should handle the rest (for single-file docs at least).
+
 ###########################################
 #
 #      Targets: clean