]> git.sur5r.net Git - cc65/blobdiff - doc/Makefile
Started a function reference
[cc65] / doc / Makefile
index d5201f1c522be22ed698b58b3894047bbee6593d..73660d5cf852ba0c8d0992353a0811a04c6eec23 100644 (file)
@@ -10,9 +10,12 @@ SGML  =      ar65.sgml       \
        cc65.sgml       \
        cl65.sgml       \
        coding.sgml     \
+       debugging.sgml  \
        dio.sgml        \
+        funcref.sgml    \
        geos.sgml       \
        index.sgml      \
+       intro.sgml      \
        ld65.sgml       \
        library.sgml
 
@@ -20,6 +23,7 @@ TXT   =       $(SGML:.sgml=.txt)
 HTML  = $(SGML:.sgml=.html)
 INFO  = $(SGML:.sgml=.info)
 DVI   = $(SGML:.sgml=.dvi)
+TEX   = $(SGML:.sgml=.tex)
 
 # ------------------------------------------------------------------------------
 # Rules to make targets
@@ -36,33 +40,39 @@ DVI   = $(SGML:.sgml=.dvi)
 %.dvi: %.sgml
        sgml2latex $<
 
+%.tex: %.sgml
+       sgml2latex --output=tex $<
+
 # ------------------------------------------------------------------------------
 # Targets
 
 .PHONY: all
-all:   txt html info dvi
+all:   txt html info dvi
 
 .PHONY:        txt
-txt:   $(TXT)
+txt:   $(TXT)
 
 .PHONY:        html
-html:  $(HTML)
+html:  $(HTML)
 
 .PHONY:        info
-info:  $(INFO)
+info:  $(INFO)
 
 .PHONY:        dvi
-dvi:   $(DVI)
+dvi:   $(DVI)
+
+.PHONY:        tex
+tex:   $(TEX)
 
 # The index.html target is special, since it does not get splitted
 index.html:    index.sgml
-       sgml2html --split=0 $<
+       sgml2html --split=0 $<
 
 clean:
        rm -f *~
 
 zap:   clean
-       rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.html *.info-* *.man
+       rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
 
 # ------------------------------------------------------------------------------
 # Make the dependencies