2005-11-20 17:10:48 +00:00
|
|
|
# -*- makefile -*-
|
2000-07-27 19:24:51 +00:00
|
|
|
#
|
|
|
|
# Makefile for the cc65 documentation
|
|
|
|
#
|
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
# You can put navigation-arrow pictures (next, back, contents) into HTML files
|
|
|
|
# by setting this variable, either here or on make's command-line.
|
|
|
|
# (You will need to copy the .png files from "share/doc/linuxdoc-tools*/html/".)
|
|
|
|
#
|
|
|
|
#BUTTONS=-I
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
# These options decide how text files are made:
|
|
|
|
# -f -- removes the backspace-overtyping that makes bold text
|
|
|
|
# in the more/less commands and on typewriter-printers
|
|
|
|
# -m -- makes Unix manual pages
|
|
|
|
#
|
|
|
|
#TXT_OPTIONS=-f -m
|
|
|
|
|
|
|
|
SGML = apple2.sgml \
|
2005-11-21 20:59:51 +00:00
|
|
|
apple2enh.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
ar65.sgml \
|
|
|
|
atari.sgml \
|
|
|
|
atmos.sgml \
|
|
|
|
c128.sgml \
|
|
|
|
c16.sgml \
|
|
|
|
c64.sgml \
|
|
|
|
ca65.sgml \
|
2003-10-16 22:16:52 +00:00
|
|
|
ca65html.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
cbm610.sgml \
|
|
|
|
cc65.sgml \
|
|
|
|
cl65.sgml \
|
|
|
|
co65.sgml \
|
2000-12-03 18:17:50 +00:00
|
|
|
coding.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
da65.sgml \
|
2000-12-03 18:48:23 +00:00
|
|
|
debugging.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
dio.sgml \
|
|
|
|
funcref.sgml \
|
|
|
|
geos.sgml \
|
2005-08-05 12:25:09 +00:00
|
|
|
grc.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
index.sgml \
|
2000-12-03 18:34:50 +00:00
|
|
|
intro.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
ld65.sgml \
|
|
|
|
library.sgml \
|
|
|
|
lynx.sgml \
|
|
|
|
nes.sgml \
|
|
|
|
pet.sgml \
|
|
|
|
plus4.sgml \
|
|
|
|
vic20.sgml
|
|
|
|
|
|
|
|
TXT = $(SGML:.sgml=.txt)
|
|
|
|
HTML = $(SGML:.sgml=.html)
|
|
|
|
INFO = $(SGML:.sgml=.info)
|
|
|
|
DVI = $(SGML:.sgml=.dvi)
|
|
|
|
TEX = $(SGML:.sgml=.tex)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2005-11-20 17:10:48 +00:00
|
|
|
# Pattern-rules, to make targets
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.txt: %.sgml
|
2005-11-20 17:10:48 +00:00
|
|
|
sgml2txt $(TXT_OPTIONS) $<
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.html: %.sgml
|
2005-11-20 17:10:48 +00:00
|
|
|
sgml2html --split=1 $(BUTTONS) $<
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.info: %.sgml
|
|
|
|
sgml2info $<
|
|
|
|
|
|
|
|
%.dvi: %.sgml
|
|
|
|
sgml2latex $<
|
|
|
|
|
2001-05-04 17:46:30 +00:00
|
|
|
%.tex: %.sgml
|
2005-11-20 17:10:48 +00:00
|
|
|
sgml2latex --output=tex $<
|
2001-05-04 17:46:30 +00:00
|
|
|
|
2000-07-27 19:24:51 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: txt html info dvi
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: txt
|
2005-11-20 17:10:48 +00:00
|
|
|
txt: linuxdoc $(TXT)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: html
|
2005-11-20 17:10:48 +00:00
|
|
|
html: linuxdoc $(HTML)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: info
|
2005-11-20 17:10:48 +00:00
|
|
|
info: linuxdoc $(INFO)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: dvi
|
2005-11-20 17:10:48 +00:00
|
|
|
dvi: linuxdoc $(DVI)
|
2001-05-04 17:46:30 +00:00
|
|
|
|
|
|
|
.PHONY: tex
|
2005-11-20 17:10:48 +00:00
|
|
|
tex: linuxdoc $(TEX)
|
|
|
|
|
|
|
|
.PHONY: linuxdoc
|
|
|
|
linuxdoc:
|
|
|
|
@sgmlcheck index >/dev/null 2>&1 || { \
|
|
|
|
echo; \
|
|
|
|
echo '"LinuxDoc Tools" does not exist on this system.'; \
|
|
|
|
echo 'So, most of the documentation might not have been built.'; \
|
|
|
|
echo; \
|
|
|
|
false;}
|
|
|
|
|
|
|
|
.PHONY: clean
|
2000-07-27 19:24:51 +00:00
|
|
|
clean:
|
2005-11-20 17:10:48 +00:00
|
|
|
$(RM) *~
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
.PHONY: zap
|
2000-07-27 19:24:51 +00:00
|
|
|
zap: clean
|
2005-11-20 17:10:48 +00:00
|
|
|
$(RM) $(TXT) $(TEX) $(DVI) *.htm* *.inf* *.man
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2003-12-16 11:46:05 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Special target rules
|
|
|
|
|
|
|
|
coding.html: coding.sgml
|
|
|
|
sgml2html --split=0 $<
|
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
# funcref.sgml's third section is huge.
|
|
|
|
# So, funcref.html is split into sub-section files.
|
2005-11-21 20:59:51 +00:00
|
|
|
#
|
2003-12-16 11:46:05 +00:00
|
|
|
funcref.html: funcref.sgml
|
2005-11-20 17:10:48 +00:00
|
|
|
sgml2html --split=2 $(BUTTONS) $<
|
2003-12-16 11:46:05 +00:00
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
# The index.html target is special:
|
|
|
|
# It is only a table of contents. So, it should not be split.
|
|
|
|
#
|
|
|
|
index.html: index.sgml
|
2003-12-16 17:44:15 +00:00
|
|
|
sgml2html --split=0 $<
|