X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2FMakefile;h=9c4afc029d75d4b6a8e2ca09a738da2b6bdba69a;hb=290de026d15fb2417bc611b81fd1c488a2cca39b;hp=fd5e616a51c3582a7f70199e719525e5c050a1a9;hpb=00cd06a8b1f7efa33ae90b58e826861cb874a643;p=cc65 diff --git a/doc/Makefile b/doc/Makefile index fd5e616a5..9c4afc029 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -5,16 +5,35 @@ # Default for the compiler lib search path as compiler define -SGML = ar65.sgml \ - ca65.sgml \ - cc65.sgml \ - cl65.sgml \ - dio.sgml +SGML = apple2.sgml \ + ar65.sgml \ + atari.sgml \ + c128.sgml \ + c16.sgml \ + c64.sgml \ + ca65.sgml \ + ca65html.sgml \ + cbm610.sgml \ + cc65.sgml \ + cl65.sgml \ + co65.sgml \ + coding.sgml \ + da65.sgml \ + debugging.sgml \ + dio.sgml \ + funcref.sgml \ + geos.sgml \ + index.sgml \ + intro.sgml \ + ld65.sgml \ + library.sgml \ + plus4.sgml TXT = $(SGML:.sgml=.txt) HTML = $(SGML:.sgml=.html) INFO = $(SGML:.sgml=.info) DVI = $(SGML:.sgml=.dvi) +TEX = $(SGML:.sgml=.tex) # ------------------------------------------------------------------------------ # Rules to make targets @@ -31,29 +50,51 @@ 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 $< clean: rm -f *~ zap: clean - rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.html *.info-* *.man + rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man + +# ------------------------------------------------------------------------------ +# Special target rules + +coding.html: coding.sgml + sgml2html --split=0 $< + +funcref.html: funcref.sgml + sgml2html --split=2 $< + +index.html: index.sgml + sgml2html --split=0 $< # ------------------------------------------------------------------------------ # Make the dependencies